testutils

package
v0.1.0-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

func (*TestKeystore) Decrypt

func (tk *TestKeystore) Decrypt(ctx context.Context, account string, encrypted []byte) (decrypted []byte, err error)

func (*TestKeystore) Sign

func (tk *TestKeystore) Sign(ctx context.Context, id string, hash []byte) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL