Documentation
¶
Overview ¶
Package didclient provides did commands.
Index ¶
Constants ¶
View Source
const ( // CommandName package command name. CommandName = "didclient" // CreateOrbDIDCommandMethod command method. CreateOrbDIDCommandMethod = "CreateOrbDID" // CreatePeerDIDCommandMethod command method. CreatePeerDIDCommandMethod = "CreatePeerDID" // BLS12381G2KeyType BLS12381G2 key type. BLS12381G2KeyType = "bls12381g2" )
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) CreateOrbDID ¶ added in v0.1.7
CreateOrbDID creates a new orb DID.
func (*Command) CreatePeerDID ¶
CreatePeerDID creates a new peer DID.
func (*Command) GetHandlers ¶
GetHandlers returns list of all commands supported by this controller command.
type CreateDIDResponse ¶
type CreateDIDResponse struct {
DID json.RawMessage
}
CreateDIDResponse contains the newly-create DID doc.
type CreateOrbDIDRequest ¶ added in v0.1.7
type CreateOrbDIDRequest struct {
PublicKeys []PublicKey `json:"publicKeys,omitempty"`
}
CreateOrbDIDRequest model
This is used for creating orb DID.
type CreatePeerDIDRequest ¶
type CreatePeerDIDRequest struct {
RouterConnectionID string `json:"routerConnectionID,omitempty"`
}
CreatePeerDIDRequest model
This is used for creating peer DID.
type Provider ¶
type Provider interface {
VDRegistry() vdr.Registry
Service(id string) (interface{}, error)
KMS() kms.KeyManager
}
Provider describes dependencies for the client.
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.