memory

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyring

type Keyring struct {
	// contains filtered or unexported fields
}

Keyring is an in-memory keyring

func New

func New(mnemonic string, numAccounts uint64) *Keyring

New initializes the keyring using the provided mnemonics

func (*Keyring) GetAddresses

func (k *Keyring) GetAddresses() []crypto.Address

GetAddresses fetches the addresses in the keyring

func (*Keyring) GetKey

func (k *Keyring) GetKey(address crypto.Address) crypto.PrivKey

GetKey fetches the private key associated with the specified address

Jump to

Keyboard shortcuts

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