Documentation ¶
Index ¶
- Constants
- func DocFromGenesisDelta(initialState string) (*did.Doc, error)
- func NewDoc(publicKey []did.VerificationMethod, opts ...did.DocOption) (*did.Doc, error)
- func UnsignedGenesisDelta(doc *did.Doc) (string, error)
- 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(did string, opts ...vdrapi.DIDMethodOption) error
- func (v *VDR) Get(id string) (*did.Doc, error)
- func (v *VDR) Read(didID string, _ ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
- func (v *VDR) Update(didDoc *diddoc.Doc, opts ...vdrapi.DIDMethodOption) error
Constants ¶
View Source
const ( // StoreNamespace store name space for DID Store. StoreNamespace = "peer" // DefaultServiceType default service type. DefaultServiceType = "defaultServiceType" // DefaultServiceEndpoint default service endpoint. DefaultServiceEndpoint = "defaultServiceEndpoint" )
View Source
const (
// DIDMethod is the peer did method name: https://identity.foundation/peer-did-method-spec/#method-name.
DIDMethod = "peer"
)
Variables ¶
This section is empty.
Functions ¶
func DocFromGenesisDelta ¶ added in v0.1.8
DocFromGenesisDelta parses a marshaled genesis delta, returning the doc contained within.
Types ¶
type VDR ¶
type VDR struct {
// contains filtered or unexported fields
}
VDR implements building new peer dids.
func (*VDR) Accept ¶
func (v *VDR) Accept(method string, opts ...vdrapi.DIDMethodOption) bool
Accept did method.
func (*VDR) Create ¶ added in v0.1.6
func (v *VDR) Create(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
Create create new DID Document. TODO https://github.com/hyperledger/aries-framework-go/issues/2466
func (*VDR) Deactivate ¶ added in v0.1.6
func (v *VDR) Deactivate(did string, opts ...vdrapi.DIDMethodOption) error
Deactivate did doc.
func (*VDR) Read ¶
func (v *VDR) Read(didID string, _ ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
Read implements didresolver.DidMethod.Read interface (https://w3c-ccg.github.io/did-resolution/#resolving-input)
Click to show internal directories.
Click to hide internal directories.