Documentation
¶
Index ¶
- type TestKeystore
- func (tk *TestKeystore) Accounts(ctx context.Context) ([]string, error)
- func (tk *TestKeystore) AddKey(privateKey ed25519.PrivateKey)
- func (tk *TestKeystore) Decrypt(ctx context.Context, account string, encrypted []byte) (decrypted []byte, err error)
- func (tk *TestKeystore) Sign(ctx context.Context, id string, hash []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestKeystore ¶
type TestKeystore struct {
Keys map[string]ed25519.PrivateKey
// contains filtered or unexported fields
}
func NewTestKeystore ¶
func NewTestKeystore(t *testing.T) *TestKeystore
func (*TestKeystore) Accounts ¶
func (tk *TestKeystore) Accounts(ctx context.Context) ([]string, error)
func (*TestKeystore) AddKey ¶
func (tk *TestKeystore) AddKey(privateKey ed25519.PrivateKey)
Click to show internal directories.
Click to hide internal directories.