Documentation
¶
Index ¶
Constants ¶
View Source
const ( // InvalidRequestErrorCode is typically a code for invalid requests InvalidRequestErrorCode = command.Code(iota + command.VC) // CreateKeySetError is for failures while creating key set CreateKeySetError )
Error codes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command contains command operations provided by verifiable credential controller.
func (*Command) CreateKeySet ¶
CreateKeySet create a new public/private encryption and signature key pairs set.
func (*Command) GetHandlers ¶
GetHandlers returns list of all commands supported by this controller command.
type CreateKeySetRequest ¶
type CreateKeySetRequest struct {
KeyType string `json:"keyType,omitempty"`
}
CreateKeySetRequest is model for createKeySey request.
type CreateKeySetResponse ¶
type CreateKeySetResponse struct {
// key id base64 encoded
KeyID string `json:"keyID,omitempty"`
// public key base64 encoded
PublicKey string `json:"publicKey,omitempty"`
}
CreateKeySetResponse for returning key pair
Click to show internal directories.
Click to hide internal directories.