[][src]Function tink_core::registry::primitive

pub fn primitive(type_url: &str, sk: &[u8]) -> Result<Primitive, TinkError>

Create a new primitive for the given serialized key using the KeyManager identified by the given type_url.