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 GetMixedVerificationMethodList(verificationRelationship []any) ([]*types.VerificationRelationship, 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 ¶
AddTxFlagsToCmd adds common flags to a module tx command.
func CmdCreateDidDoc ¶
func CmdDeactivateDidDoc ¶
func CmdGetDidDoc ¶
func CmdGetDidDocVersion ¶
func CmdUpdateDidDoc ¶
func GetFromSpecCompliantPayload ¶
func GetFromSpecCompliantPayload(specPayload DIDDocument) ([]*types.VerificationMethod, []*types.Service, error)
func GetMixedVerificationMethodList ¶
func GetMixedVerificationMethodList(verificationRelationship []any) ([]*types.VerificationRelationship, error)
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func SetFeePayerFromSigner ¶
Types ¶
type DIDDocument ¶
type DIDDocument struct { Context []string `json:"context"` ID string `json:"id"` Controller []string `json:"controller,omitempty"` VerificationMethod []VerificationMethod `json:"verificationMethod,omitempty"` Authentication []any `json:"authentication,omitempty"` AssertionMethod []any `json:"assertionMethod,omitempty"` CapabilityInvocation []any `json:"capabilityInvocation,omitempty"` CapabilityDelegation []any `json:"capabilityDelegation,omitempty"` KeyAgreement []any `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 ¶
Click to show internal directories.
Click to hide internal directories.