Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DIDDocResolver ¶
type DIDDocResolver struct {
VDRRegistry vdrResolver
}
DIDDocResolver helps resolves a KMS kid from 'kid'/'skid' with values set as didDoc[].KeyAgreement[].ID. The list of DIDDocs should contain both sender and recipients docs for proper resolution during unpacking.
func (*DIDDocResolver) Resolve ¶
func (d *DIDDocResolver) Resolve(kid string) (*crypto.PublicKey, error)
Resolve kid into a *cryptoapi.PublicKey with ID set as the KMS kid. Where kid matches the DID doc found in the vdr registry with first key entry matching doc.keyAgreement[].VerificationMethod.ID.
Click to show internal directories.
Click to hide internal directories.