wallet

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	Alias      string `json:"alias"`
	Address    string `json:"address"`
	PrivateKey string `json:"private_key"`
	PublicKey  string `json:"public_key"`
}

func NewWallet

func NewWallet(mnemonic, alias string, customDerivationPath ...string) (*Wallet, error)

NewWallet creates a new Wallet from the given mnemonic, alias, and an optional custom derivation path. It uses the provided account derived from the standard Ethereum derivation path if no custom path is provided.

Jump to

Keyboard shortcuts

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