Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InvalidRequestErrorCode is typically a code for invalid requests InvalidRequestErrorCode = command.Code(iota + command.VC) // ValidateCredential for validate vc error ValidateCredentialErrorCode // SaveCredentialErrorCode for save vc error SaveCredentialErrorCode // GetCredentialErrorCode for get vc error GetCredentialErrorCode )
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) GetCredential ¶
GetCredential retrives the verifiable credential from the store.
func (*Command) GetHandlers ¶
GetHandlers returns list of all commands supported by this controller command.
func (*Command) SaveCredential ¶
SaveCredential saves the verifiable credential to the store.
type Credential ¶
type Credential struct {
VC string `json:"vc,omitempty"`
}
Credential is model for verifiable credential.
Click to show internal directories.
Click to hide internal directories.