Documentation ¶
Index ¶
- Constants
- func CreateDidTx(msgServer types.MsgServer, ctx context.Context, keyPair ed25519KeyPair) (string, error)
- func GenerateEd25519KeyPair() ed25519KeyPair
- func GenerateSecp256k1KeyPair() secp256k1KeyPair
- func GetPublicKeyAndOptionalID(keyPair GenericKeyPair) (string, string)
- func QueryDid(k *keeper.Keeper, ctx sdk.Context, Id string) *types.DidDocumentState
- func SignGeneric(keyPair GenericKeyPair, data []byte) []byte
- 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 DidSigningElements
- type GenericKeyPair
- type SchemaRpcElements
Constants ¶
View Source
const ChainNamespace = "devnet"
View Source
const Creator = "hid1kxqk5ejca8nfpw8pg47484rppv359xh7qcasy4"
View Source
const DidMethod = "hid"
Variables ¶
This section is empty.
Functions ¶
func CreateDidTx ¶
func GenerateEd25519KeyPair ¶ added in v0.1.4
func GenerateEd25519KeyPair() ed25519KeyPair
func GenerateSecp256k1KeyPair ¶ added in v0.1.5
func GenerateSecp256k1KeyPair() secp256k1KeyPair
func GetPublicKeyAndOptionalID ¶ added in v0.1.5
func GetPublicKeyAndOptionalID(keyPair GenericKeyPair) (string, string)
func SignGeneric ¶ added in v0.1.4
func SignGeneric(keyPair GenericKeyPair, data []byte) []byte
func UpdateDidTx ¶
Types ¶
type CredRpcElements ¶
type CredRpcElements struct { Status *types.CredentialStatus Proof *types.CredentialProof Creator string }
func GenerateCredStatusRPCElements ¶
func GenerateCredStatusRPCElements(keyPair GenericKeyPair, issuerId string, verficationMethod *types.VerificationMethod) CredRpcElements
func UpdateCredStatus ¶
func UpdateCredStatus(newStatus string, credRpcElem CredRpcElements, keyPair ed25519KeyPair) CredRpcElements
type DidRpcElements ¶
func GenerateDidDocumentRPCElements ¶
func GenerateDidDocumentRPCElements(keyPair GenericKeyPair, signingElements []DidSigningElements) DidRpcElements
func GetModifiedDidDocumentSignature ¶
func GetModifiedDidDocumentSignature(modifiedDidDocument *types.Did, keyPair ed25519KeyPair, verificationMethodId string) DidRpcElements
type DidSigningElements ¶ added in v0.1.4
type DidSigningElements struct {
// contains filtered or unexported fields
}
type GenericKeyPair ¶ added in v0.1.4
type GenericKeyPair = interface{}
An interface to support multiple Key Pair Structs
type SchemaRpcElements ¶
type SchemaRpcElements struct { SchemaDocument *types.SchemaDocument SchemaProof *types.SchemaProof Creator string }
func GenerateSchemaDocumentRPCElements ¶
func GenerateSchemaDocumentRPCElements(keyPair GenericKeyPair, authorId string, verficationMethodId string) SchemaRpcElements
Click to show internal directories.
Click to hide internal directories.