Documentation
¶
Index ¶
- Constants
- func ConcatKeys(dst map[string]ed25519.PrivateKey, src map[string]ed25519.PrivateKey) map[string]ed25519.PrivateKey
- type KeyPair
- type TestSetup
- func (s *TestSetup) CreateDid(pubKey ed25519.PublicKey, did string) *v1.MsgCreateDidPayload
- func (s TestSetup) CreatePreparedDID() map[string]KeyPair
- func (s *TestSetup) CreateToUpdateDid(did *v1.MsgCreateDidPayload) *v1.MsgUpdateDidPayload
- func (s *TestSetup) InitDid(did string) (map[string]ed25519.PrivateKey, *v1.MsgCreateDidPayload, error)
- func (s *TestSetup) SendCreateDid(msg *v1.MsgCreateDidPayload, keys map[string]ed25519.PrivateKey) (*v1.Did, error)
- func (s *TestSetup) SendUpdateDid(msg *v1.MsgUpdateDidPayload, keys map[string]ed25519.PrivateKey) (*v1.Did, error)
- func (s *TestSetup) WrapCreateRequest(payload *v1.MsgCreateDidPayload, keys map[string]ed25519.PrivateKey) *v1.MsgCreateDid
- func (s *TestSetup) WrapUpdateRequest(payload *v1.MsgUpdateDidPayload, keys map[string]ed25519.PrivateKey) *v1.MsgUpdateDid
Constants ¶
View Source
const ( AliceDID = "did:cheqd:test:alice" BobDID = "did:cheqd:test:bob" CharlieDID = "did:cheqd:test:charlie" AliceKey1 = AliceDID + "#key-1" AliceKey2 = AliceDID + "#key-2" BobKey1 = BobDID + "#key-1" BobKey2 = BobDID + "#key-2" BobKey3 = BobDID + "#key-3" BobKey4 = BobDID + "#key-4" CharlieKey1 = CharlieDID + "#key-1" CharlieKey2 = CharlieDID + "#key-2" CharlieKey3 = CharlieDID + "#key-3" )
Variables ¶
This section is empty.
Functions ¶
func ConcatKeys ¶
func ConcatKeys(dst map[string]ed25519.PrivateKey, src map[string]ed25519.PrivateKey) map[string]ed25519.PrivateKey
Types ¶
type KeyPair ¶
type KeyPair struct {
PrivateKey ed25519.PrivateKey
PublicKey ed25519.PublicKey
}
func GenerateKeyPair ¶
func GenerateKeyPair() KeyPair
type TestSetup ¶
func (TestSetup) CreatePreparedDID ¶ added in v0.2.7
func (*TestSetup) CreateToUpdateDid ¶
func (s *TestSetup) CreateToUpdateDid(did *v1.MsgCreateDidPayload) *v1.MsgUpdateDidPayload
func (*TestSetup) SendCreateDid ¶
func (s *TestSetup) SendCreateDid(msg *v1.MsgCreateDidPayload, keys map[string]ed25519.PrivateKey) (*v1.Did, error)
func (*TestSetup) SendUpdateDid ¶
func (s *TestSetup) SendUpdateDid(msg *v1.MsgUpdateDidPayload, keys map[string]ed25519.PrivateKey) (*v1.Did, error)
func (*TestSetup) WrapCreateRequest ¶
func (s *TestSetup) WrapCreateRequest(payload *v1.MsgCreateDidPayload, keys map[string]ed25519.PrivateKey) *v1.MsgCreateDid
func (*TestSetup) WrapUpdateRequest ¶
func (s *TestSetup) WrapUpdateRequest(payload *v1.MsgUpdateDidPayload, keys map[string]ed25519.PrivateKey) *v1.MsgUpdateDid
Click to show internal directories.
Click to hide internal directories.