wallet

package
v0.0.0-...-07c2c16 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidPrivateKey = "invalid private key"
	ErrInvalidPublicKey  = "invalid public key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	PublicKey  *ecdsa.PublicKey
	PrivateKey *ecdsa.PrivateKey
	Address    common.Address
}

func CreateWallet

func CreateWallet() (Wallet, error)

func ImportWallet

func ImportWallet(privateKey string) (Wallet, error)

func (*Wallet) SignMessage

func (w *Wallet) SignMessage(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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