getKeyId
Get the ID of the key to sign credentials with (issue assertions) for did.
Selection, in order:
the first
assertionMethodreference — the relationship W3C VC Data Integrity requires of an issuer's key;otherwise the first
authenticationreference;otherwise the first embedded verification method that is not reserved for
keyAgreement(an encryption key such as X25519 cannot sign).
Previously the first embedded verification method was returned regardless of its relationships, which picked a key-agreement or authentication-only key for documents that list one first.
Return
Result wrapping the key ID string, or a failure with a descriptive message
Parameters
did
The DID to extract the key ID from