Documentation ¶
Overview ¶
Package longform implement long-form vdr
Index ¶
- Constants
- type Option
- type VDR
- func (v *VDR) Accept(method string, opts ...vdrapi.DIDMethodOption) bool
- func (v *VDR) Close() error
- func (v *VDR) Create(did *docdid.Doc, opts ...vdrapi.DIDMethodOption) (*docdid.DocResolution, error)
- func (v *VDR) Deactivate(_ string, _ ...vdrapi.DIDMethodOption) error
- func (v *VDR) Read(longFormDID string, _ ...vdrapi.DIDMethodOption) (*docdid.DocResolution, error)
- func (v *VDR) Update(_ *docdid.Doc, _ ...vdrapi.DIDMethodOption) error
Constants ¶
View Source
const ( // UpdatePublicKeyOpt update public key opt. UpdatePublicKeyOpt = "updatePublicKey" // RecoveryPublicKeyOpt recovery public key opt. RecoveryPublicKeyOpt = "recoveryPublicKey" // DIDAcceptOpt is DID accept option. DIDAcceptOpt = "didAcceptOpt" // VDRAcceptOpt is VDR accept option. VDRAcceptOpt = "vdrAcceptOpt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *VDR)
Option configures the long-form vdr.
func WithDIDMethod ¶
WithDIDMethod overrides the default did method.
func WithDocumentLoader ¶
func WithDocumentLoader(l jsonld.DocumentLoader) Option
WithDocumentLoader overrides the default JSONLD document loader used when processing JSONLD DID Documents.
type VDR ¶
type VDR struct {
// contains filtered or unexported fields
}
VDR bloc.
func (*VDR) Accept ¶
func (v *VDR) Accept(method string, opts ...vdrapi.DIDMethodOption) bool
Accept did method.
func (*VDR) Create ¶
func (v *VDR) Create(did *docdid.Doc, opts ...vdrapi.DIDMethodOption) (*docdid.DocResolution, error)
Create did doc.
func (*VDR) Deactivate ¶
func (v *VDR) Deactivate(_ string, _ ...vdrapi.DIDMethodOption) error
Deactivate did doc.
func (*VDR) Read ¶
func (v *VDR) Read(longFormDID string, _ ...vdrapi.DIDMethodOption) (*docdid.DocResolution, error)
Read long-form DID.
Directories ¶
Path | Synopsis |
---|---|
Package dochandler performs document operation processing and document resolution.
|
Package dochandler performs document operation processing and document resolution. |
protocolversion/clientregistry/mocks
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.