keystore

package
v0.0.0-...-21d01d2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyStore

type KeyStore interface {
	// CreateSignedTx creates and signs the transaction by the given arguments
	CreateSignedTx(ctx context.Context, chainID uint64, to common.Address, gasLimit uint64, data []byte) (*types.Transaction, error)
}

KeyStore represents the behavior of the key storage. Can hold only one key.

func New

func New(privateKey *ecdsa.PrivateKey, provider onchain.Provider) (KeyStore, error)

New is the constructor of keyStore

func NewFromRaw

func NewFromRaw(pkRaw string, provider onchain.Provider) (KeyStore, error)

NewFromRaw is the constructor of keyStore

Jump to

Keyboard shortcuts

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