Documentation ¶
Overview ¶
Package didclient provides did commands.
Index ¶
Constants ¶
View Source
const ( // CommandName package command name. CommandName = "didclient" // CreateTrustBlocDIDCommandMethod command method. CreateTrustBlocDIDCommandMethod = "CreateTrustBlocDID" // CreatePeerDIDCommandMethod command method. CreatePeerDIDCommandMethod = "CreatePeerDID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is controller command for DID Exchange.
func (*Command) CreatePeerDID ¶
CreatePeerDID creates a new peer DID.
func (*Command) CreateTrustBlocDID ¶
CreateTrustBlocDID creates a new trust bloc DID.
func (*Command) GetHandlers ¶
GetHandlers returns list of all commands supported by this controller command.
type CreateBlocDIDRequest ¶
type CreateBlocDIDRequest struct {
PublicKeys []PublicKey `json:"publicKeys,omitempty"`
}
CreateBlocDIDRequest model
This is used for creating trustbloc DID
type CreateDIDResponse ¶
type CreateDIDResponse struct {
DID json.RawMessage
}
CreateDIDResponse contains the newly-create DID doc.
type CreatePeerDIDRequest ¶
type CreatePeerDIDRequest struct {
RouterConnectionID string `json:"routerConnectionID,omitempty"`
}
CreatePeerDIDRequest model
This is used for creating peer DID
type PublicKey ¶
type PublicKey struct { ID string `json:"id,omitempty"` Type string `json:"type,omitempty"` Encoding string `json:"encoding,omitempty"` KeyType string `json:"keyType,omitempty"` Purposes []string `json:"purposes,omitempty"` Recovery bool `json:"recovery,omitempty"` Update bool `json:"update,omitempty"` Value string `json:"value,omitempty"` }
PublicKey public key.
Click to show internal directories.
Click to hide internal directories.