util

package
v4.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultContext added in v4.2.0

func DefaultContext(t *testing.T, key storetypes.StoreKey) sdk.Context

DefaultContext creates a sdk.Context with a fresh MemDB that can be used in tests.

func GenerateRandomEthKey

func GenerateRandomEthKey() (*ecdsa.PrivateKey, *ecdsa.PublicKey, ethcmn.Address, error)

GenerateRandomEthKey generates a random Ethereum key pair.

func GenerateRandomEthKeyFromRand

func GenerateRandomEthKeyFromRand(r io.Reader) (*ecdsa.PrivateKey, *ecdsa.PublicKey, ethcmn.Address, error)

GenerateRandomEthKeyFromRand generates a random Ethereum key pair from a reader.

func KVStore added in v4.2.0

func KVStore(t *testing.T) sdk.KVStore

func NewCodec added in v4.2.0

func NewCodec(registrars ...func(types.InterfaceRegistry)) codec.Codec

NewCodec creates Codec instance and registers standard Cosmos SDK interfaces (message interface, tx, pub & private keys) as well as all types provided through the registrar ( typically a RegisterInterfaces function in Cosmos SDK modules)

Types

This section is empty.

Jump to

Keyboard shortcuts

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