Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InvalidRequestErrorCode is typically a code for invalid requests InvalidRequestErrorCode = command.Code(iota + command.VDRI) // CreatePublicDIDError is for failures while creating public DIDs CreatePublicDIDError )
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 vdri controller
func (*Command) CreatePublicDID ¶
CreatePublicDID creates new public DID using agent VDRI
func (*Command) GetHandlers ¶
GetHandlers returns list of all commands supported by this controller command
type CreatePublicDIDArgs ¶
type CreatePublicDIDArgs struct { // Params for creating public DID Method string `json:"method"` // RequestHeader to be included while submitting request to http binding URL RequestHeader string `json:"header"` }
CreatePublicDIDArgs contains parameters for creating new public DID
type CreatePublicDIDResponse ¶
type CreatePublicDIDResponse struct { // TODO return base64-encoded raw bytes of the DID doc [Issue: #855] DID *did.Doc `json:"did"` }
CreatePublicDIDResponse for returning public DID created
Click to show internal directories.
Click to hide internal directories.