Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDIDOpts ¶
CreateDIDOpts holds the options for creating DID
type Creator ¶
type Creator interface { // Creates new DID document. // // Args: // // method: did method // opts: options to create DID // // Returns: // // did: DID document // // error: error Create(method string, opts ...DocOpts) (*did.Doc, error) }
Creator allows for creation of DID document
type DidMethod ¶
type DidMethod interface { // Build builds did document with specified public key and options Build(pubKey *PubKey, opts *CreateDIDOpts) (*did.Doc, error) // Accept registers this DID method document builder with the given method. Accept(method string) bool }
DidMethod defines method interface for creation of did documents
type DocOpts ¶
type DocOpts func(opts *CreateDIDOpts)
DocOpts is a create DID option
func WithServiceEndpoint ¶
WithServiceEndpoint allows for setting service endpoint
func WithServiceType ¶
WithServiceType service type of DID document to be created
Click to show internal directories.
Click to hide internal directories.