wallet

package
v0.0.0-...-cbcd4c9 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPath = "m/44'/60'/0'/0/0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	PrivateKey ecdsa.PrivateKey
}

func ReadPrivateKey

func ReadPrivateKey(hex string) (*Account, error)

func (Account) Address

func (a Account) Address() common.Address

func (Account) PublicKey

func (a Account) PublicKey() ecdsa.PublicKey

type Seed

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

func InitByMnemonic

func InitByMnemonic(words string) (Seed, error)

func (Seed) Derive

func (seed Seed) Derive(path string) (*Account, error)

Jump to

Keyboard shortcuts

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