Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DIDCommServiceType default DID Communication service endpoint type. DIDCommServiceType = "did-communication" // DIDCommV2ServiceType is the DID Communications V2 service type. DIDCommV2ServiceType = "DIDCommMessaging" // LegacyServiceType is the DID Communication V1 indy based service type. LegacyServiceType = "IndyAgent" )
Variables ¶
View Source
var ErrNotFound = errors.New("DID does not exist")
ErrNotFound is returned when a DID resolver does not find the DID.
Functions ¶
This section is empty.
Types ¶
type DIDMethodOption ¶ added in v0.1.6
type DIDMethodOption func(opts *DIDMethodOpts)
DIDMethodOption is a did method option.
func WithOption ¶ added in v0.1.6
func WithOption(name string, value interface{}) DIDMethodOption
WithOption add option for did method.
type DIDMethodOpts ¶ added in v0.1.6
type DIDMethodOpts struct {
Values map[string]interface{}
}
DIDMethodOpts did method opts.
type Registry ¶
type Registry interface { Resolve(did string, opts ...DIDMethodOption) (*did.DocResolution, error) Create(method string, did *did.Doc, opts ...DIDMethodOption) (*did.DocResolution, error) Update(did *did.Doc, opts ...DIDMethodOption) error Deactivate(did string, opts ...DIDMethodOption) error Close() error }
Registry vdr registry.
type VDR ¶
type VDR interface { Read(did string, opts ...DIDMethodOption) (*did.DocResolution, error) Create(did *did.Doc, opts ...DIDMethodOption) (*did.DocResolution, error) Accept(method string, opts ...DIDMethodOption) bool Update(did *did.Doc, opts ...DIDMethodOption) error Deactivate(did string, opts ...DIDMethodOption) error Close() error }
VDR verifiable data registry interface. TODO https://github.com/hyperledger/aries-framework-go/issues/2475
Click to show internal directories.
Click to hide internal directories.