Documentation ¶
Index ¶
- Constants
- type VDR
- func (v *VDR) Accept(method string, opts ...vdrapi.DIDMethodOption) bool
- func (v *VDR) Close() error
- func (v *VDR) Create(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
- func (v *VDR) Deactivate(didID string, opts ...vdrapi.DIDMethodOption) error
- func (v *VDR) Read(didKey string, _ ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
- func (v *VDR) Update(didDoc *diddoc.Doc, opts ...vdrapi.DIDMethodOption) error
Constants ¶
View Source
const ( // DIDMethod did method. DIDMethod = "key" // EncryptionKey encryption key. EncryptionKey = "encryptionKey" // KeyType option to create a new kms key for DIDDocs with empty VerificationMethod. KeyType = "keyType" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VDR ¶
type VDR struct{}
VDR implements did:key method support.
func (*VDR) Accept ¶
func (v *VDR) Accept(method string, opts ...vdrapi.DIDMethodOption) bool
Accept accepts did:key method.
func (*VDR) Create ¶
func (v *VDR) Create(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
Create new DID document for didDoc. Either didDoc must contain non-empty VerificationMethod[] or opts must contain KeyType value of kms.KeyType to create a new key and a corresponding *VerificationMethod entry.
func (*VDR) Deactivate ¶
func (v *VDR) Deactivate(didID string, opts ...vdrapi.DIDMethodOption) error
Deactivate did doc.
func (*VDR) Read ¶
func (v *VDR) Read(didKey string, _ ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
Read expands did:key value to a DID document.
Click to show internal directories.
Click to hide internal directories.