Documentation
¶
Index ¶
Constants ¶
View Source
const (
// StoreNamespace store name space for DID Store
StoreNamespace = "didresolver"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DIDCreator ¶
type DIDCreator struct {
// contains filtered or unexported fields
}
DIDCreator implements building new dids
func NewDIDCreator ¶
func NewDIDCreator(opts ...Option) *DIDCreator
NewDIDCreator return new instance of did creator
func (*DIDCreator) Build ¶
func (dc *DIDCreator) Build(pubKey *api.PubKey, opts *api.CreateDIDOpts) (*did.Doc, error)
Build builds new DID Document
type DIDResolver ¶
type DIDResolver struct {
// contains filtered or unexported fields
}
DIDResolver resolver
func NewDIDResolver ¶
func NewDIDResolver(store *DIDStore) *DIDResolver
NewDIDResolver new Peer DID resolver instance
func (*DIDResolver) Read ¶
func (resl *DIDResolver) Read(didID string, _ ...didresolver.ResolveOpt) (*did.Doc, error)
Read implements didresolver.DidMethod.Read interface (https://w3c-ccg.github.io/did-resolution/#resolving-input)
type DIDStore ¶
type DIDStore struct {
// contains filtered or unexported fields
}
DIDStore Peer DID Document store
func NewDIDStore ¶
NewDIDStore new Peer DID store (backing store is configurable)
type Option ¶
type Option func(opts *DIDCreator)
Option configures the did creator
func WithCreatorServiceEndpoint ¶
WithCreatorServiceEndpoint allows for setting service endpoint
func WithCreatorServiceType ¶
WithCreatorServiceType is service type for this creator
Click to show internal directories.
Click to hide internal directories.