didkit_key_to_verification_method

Function didkit_key_to_verification_method 

Source
#[unsafe(no_mangle)]
pub extern "C" fn didkit_key_to_verification_method( method_pattern: *const c_char, jwk: *const c_char, ) -> *const c_char
Expand description

Convert a key to a did:key DID URI for use in the verificationMethod property of a linked data proof. Input should be a C string containing the key as a JWK. The JWK should contain public key material; private key parameters are ignored. On success, this function returns a newly-allocated C string containing the verificationMethod URI. On failure, NULL is returned; the error message can be retrieved using didkit_error_message.