Documentation ¶
Index ¶
- Variables
- func CreateDidTx(msgServer types.MsgServer, ctx context.Context, keyPair ed25519KeyPair) (string, error)
- func GeneratePublicPrivateKeyPair() ed25519KeyPair
- func QueryDid(k *keeper.Keeper, ctx sdk.Context, Id string) *types.DidDocument
- func TestKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)
- func UpdateDidTx(msgServer types.MsgServer, ctx context.Context, rpcElements DidRpcElements, ...) error
- type CredRpcElements
- type DidRpcElements
- type SchemaRpcElements
Constants ¶
This section is empty.
Variables ¶
View Source
var Creator string = "hid1kxqk5ejca8nfpw8pg47484rppv359xh7qcasy4"
View Source
var DidMethod string = "hid"
Functions ¶
func CreateDidTx ¶
func GeneratePublicPrivateKeyPair ¶
func GeneratePublicPrivateKeyPair() ed25519KeyPair
func UpdateDidTx ¶
Types ¶
type CredRpcElements ¶
type CredRpcElements struct { Status *types.CredentialStatus Proof *types.CredentialProof Creator string }
func GenerateCredStatusRPCElements ¶
func GenerateCredStatusRPCElements(keyPair ed25519KeyPair, Id string, verficationMethod *types.VerificationMethod) CredRpcElements
func UpdateCredStatus ¶
func UpdateCredStatus(newStatus string, credRpcElem CredRpcElements, keyPair ed25519KeyPair) CredRpcElements
type DidRpcElements ¶
func GenerateDidDocumentRPCElements ¶
func GenerateDidDocumentRPCElements(keyPair ed25519KeyPair) DidRpcElements
func GetModifiedDidDocumentSignature ¶
func GetModifiedDidDocumentSignature(modifiedDidDocument *types.Did, keyPair ed25519KeyPair, verificationMethodId string) DidRpcElements
type SchemaRpcElements ¶
type SchemaRpcElements struct { SchemaDocument *types.SchemaDocument SchemaProof *types.SchemaProof Creator string }
func GenerateSchemaDocumentRPCElements ¶
func GenerateSchemaDocumentRPCElements(keyPair ed25519KeyPair, Id string, verficationMethodId string) SchemaRpcElements
Click to show internal directories.
Click to hide internal directories.