signer

package
v0.0.0-...-aae3bb1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer interface {
	Address() common.Address                 // Address returns the Ethereum address associated with the signer.
	SignerFn(chainID *big.Int) bind.SignerFn // SignerFn returns a signer function used for transaction signing.
	SignData([]byte) ([]byte, error)         // SignData signs the given data using the signer's private key.
}

Signer defines the interface for interacting with different types of signers.

func CreateSigner

func CreateSigner(privateKey, mnemonic, hdPath string) (Signer, error)

CreateSigner creates a signer based on the provided private key, mnemonic, or hardware wallet.

Jump to

Keyboard shortcuts

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