[][src]Function didkit::c::didkit_key_to_verification_method

#[no_mangle]pub extern "C" fn didkit_key_to_verification_method(
    method_name: *const c_char,
    jwk: *const c_char
) -> *const c_char

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.