Documentation
¶
Index ¶
- Constants
- func AccAddrByKeyRef(keyring keyring.Keyring, keyRef string) (sdk.AccAddress, error)
- func AddTxFlagsToCmd(cmd *cobra.Command)
- func CmdCreateDidDoc() *cobra.Command
- func CmdDeactivateDidDoc() *cobra.Command
- func CmdGetAllDidDocVersionsMetadata() *cobra.Command
- func CmdGetDidDoc() *cobra.Command
- func CmdGetDidDocVersion() *cobra.Command
- func CmdUpdateDidDoc() *cobra.Command
- func GetFromSpecCompliantPayload(specPayload DIDDocument) ([]*types.VerificationMethod, []*types.Service, error)
- func GetQueryCmd() *cobra.Command
- func GetTxCmd() *cobra.Command
- func SetFeePayerFromSigner(ctx *client.Context) error
- func SignWithSignInputs(signBytes []byte, signInputs []SignInput) []*types.SignInfo
- type DIDDocument
- type PayloadWithSignInputs
- type Service
- type SignInput
- type VerificationMethod
Constants ¶
View Source
const (
FlagVersionID = "version-id"
)
Variables ¶
This section is empty.
Functions ¶
func AccAddrByKeyRef ¶
func AddTxFlagsToCmd ¶ added in v1.2.0
AddTxFlagsToCmd adds common flags to a module tx command.
func CmdCreateDidDoc ¶
func CmdDeactivateDidDoc ¶
func CmdGetDidDoc ¶
func CmdGetDidDocVersion ¶
func CmdUpdateDidDoc ¶
func GetFromSpecCompliantPayload ¶ added in v1.2.0
func GetFromSpecCompliantPayload(specPayload DIDDocument) ([]*types.VerificationMethod, []*types.Service, error)
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func SetFeePayerFromSigner ¶
Types ¶
type DIDDocument ¶ added in v1.2.0
type DIDDocument struct {
Context []string `json:"context"`
ID string `json:"id"`
Controller []string `json:"controller,omitempty"`
VerificationMethod []VerificationMethod `json:"verificationMethod,omitempty"`
Authentication []string `json:"authentication,omitempty"`
AssertionMethod []string `json:"assertionMethod,omitempty"`
CapabilityInvocation []string `json:"capabilityInvocation,omitempty"`
CapabilityDelegation []string `json:"capabilityDelegation,omitempty"`
KeyAgreement []string `json:"keyAgreement,omitempty"`
Service []Service `json:"service,omitempty"`
AlsoKnownAs []string `json:"alsoKnownAs,omitempty"`
}
type PayloadWithSignInputs ¶
type PayloadWithSignInputs struct {
Payload json.RawMessage
SignInputs []SignInput
}
type SignInput ¶
type SignInput struct {
VerificationMethodID string
PrivKey ed25519.PrivateKey
}
func ReadPayloadWithSignInputsFromFile ¶
func ReadPayloadWithSignInputsFromFile(filePath string) (json.RawMessage, []SignInput, error)
type VerificationMethod ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.