Documentation ¶
Index ¶
- Constants
- func BuildEd25519VerificationKey2020VerificationMaterial(publicKey ed25519.PublicKey) string
- func BuildJsonWebKey2020VerificationMaterial(publicKey ed25519.PublicKey) string
- func GenerateDID(idtype IDType) string
- type CreatedDidDocInfo
- type DidDocInfo
- type IDType
- type KeyPair
- type SignInput
- type TestSetup
- func (s *TestSetup) BuildDidDocWithCustomDID(did string) DidDocInfo
- func (s *TestSetup) BuildDidDocWithCustomId(uuid string) DidDocInfo
- func (s *TestSetup) BuildSimpleDidDoc() DidDocInfo
- func (s *TestSetup) CreateCustomDidDoc(info DidDocInfo) CreatedDidDocInfo
- func (s *TestSetup) CreateDid(payload *types.MsgCreateDidDocPayload, signInputs []SignInput) (*types.MsgCreateDidDocResponse, error)
- func (s *TestSetup) CreateDidDocWithExternalControllers(controllers []string, signInputs []SignInput) CreatedDidDocInfo
- func (s *TestSetup) CreateSimpleDid() CreatedDidDocInfo
- func (s *TestSetup) DeactivateDidDoc(payload *types.MsgDeactivateDidDocPayload, signInputs []SignInput) (*types.MsgDeactivateDidDocResponse, error)
- func (s *TestSetup) QueryAllDidDocVersionsMetadata(did string) (*types.QueryGetAllDidDocVersionsMetadataResponse, error)
- func (s *TestSetup) QueryDidDoc(did string) (*types.QueryGetDidDocResponse, error)
- func (s *TestSetup) QueryDidDocVersion(did, version string) (*types.QueryGetDidDocVersionResponse, error)
- func (s *TestSetup) UpdateDidDoc(payload *types.MsgUpdateDidDocPayload, signInputs []SignInput) (*types.MsgUpdateDidDocResponse, error)
Constants ¶
View Source
const DID_NAMESPACE = "testnet"
Variables ¶
This section is empty.
Functions ¶
func GenerateDID ¶
Types ¶
type CreatedDidDocInfo ¶
type CreatedDidDocInfo struct { DidDocInfo VersionId string }
type DidDocInfo ¶
type KeyPair ¶
type KeyPair struct { Private ed25519.PrivateKey Public ed25519.PublicKey }
func GenerateKeyPair ¶
func GenerateKeyPair() KeyPair
type SignInput ¶
type SignInput struct { VerificationMethodId string Key ed25519.PrivateKey }
type TestSetup ¶
type TestSetup struct { Cdc codec.Codec SdkCtx sdk.Context StdCtx context.Context Keeper keeper.Keeper MsgServer types.MsgServer QueryServer types.QueryServer }
func (*TestSetup) BuildDidDocWithCustomDID ¶
func (s *TestSetup) BuildDidDocWithCustomDID(did string) DidDocInfo
func (*TestSetup) BuildDidDocWithCustomId ¶
func (s *TestSetup) BuildDidDocWithCustomId(uuid string) DidDocInfo
func (*TestSetup) BuildSimpleDidDoc ¶
func (s *TestSetup) BuildSimpleDidDoc() DidDocInfo
func (*TestSetup) CreateCustomDidDoc ¶
func (s *TestSetup) CreateCustomDidDoc(info DidDocInfo) CreatedDidDocInfo
func (*TestSetup) CreateDid ¶
func (s *TestSetup) CreateDid(payload *types.MsgCreateDidDocPayload, signInputs []SignInput) (*types.MsgCreateDidDocResponse, error)
func (*TestSetup) CreateDidDocWithExternalControllers ¶
func (s *TestSetup) CreateDidDocWithExternalControllers(controllers []string, signInputs []SignInput) CreatedDidDocInfo
func (*TestSetup) CreateSimpleDid ¶
func (s *TestSetup) CreateSimpleDid() CreatedDidDocInfo
func (*TestSetup) DeactivateDidDoc ¶
func (s *TestSetup) DeactivateDidDoc(payload *types.MsgDeactivateDidDocPayload, signInputs []SignInput) (*types.MsgDeactivateDidDocResponse, error)
func (*TestSetup) QueryAllDidDocVersionsMetadata ¶
func (s *TestSetup) QueryAllDidDocVersionsMetadata(did string) (*types.QueryGetAllDidDocVersionsMetadataResponse, error)
func (*TestSetup) QueryDidDoc ¶
func (s *TestSetup) QueryDidDoc(did string) (*types.QueryGetDidDocResponse, error)
func (*TestSetup) QueryDidDocVersion ¶
func (s *TestSetup) QueryDidDocVersion(did, version string) (*types.QueryGetDidDocVersionResponse, error)
func (*TestSetup) UpdateDidDoc ¶
func (s *TestSetup) UpdateDidDoc(payload *types.MsgUpdateDidDocPayload, signInputs []SignInput) (*types.MsgUpdateDidDocResponse, error)
Click to show internal directories.
Click to hide internal directories.