Documentation ¶
Index ¶
- Constants
- func GenerateDID(idtype IDType) string
- func GenerateEd25519VerificationKey2018VerificationMaterial(publicKey ed25519.PublicKey) string
- func GenerateEd25519VerificationKey2020VerificationMaterial(publicKey ed25519.PublicKey) string
- func GenerateJSONWebKey2020VerificationMaterial(publicKey ed25519.PublicKey) 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.QueryAllDidDocVersionsMetadataResponse, error)
- func (s *TestSetup) QueryDidDoc(did string) (*types.QueryDidDocResponse, error)
- func (s *TestSetup) QueryDidDocVersion(did, version string) (*types.QueryDidDocVersionResponse, error)
- func (s *TestSetup) UpdateDidDoc(payload *types.MsgUpdateDidDocPayload, signInputs []SignInput) (*types.MsgUpdateDidDocResponse, error)
Constants ¶
View Source
const DidNamespace = "testnet"
Variables ¶
This section is empty.
Functions ¶
func GenerateDID ¶
func GenerateEd25519VerificationKey2018VerificationMaterial ¶ added in v1.1.0
func GenerateEd25519VerificationKey2020VerificationMaterial ¶ added in v1.1.0
func GenerateJSONWebKey2020VerificationMaterial ¶ added in v1.1.0
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 ¶ added in v1.1.0
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.QueryAllDidDocVersionsMetadataResponse, error)
func (*TestSetup) QueryDidDoc ¶
func (s *TestSetup) QueryDidDoc(did string) (*types.QueryDidDocResponse, error)
func (*TestSetup) QueryDidDocVersion ¶
func (s *TestSetup) QueryDidDocVersion(did, version string) (*types.QueryDidDocVersionResponse, 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.