wallet

package
v0.0.0-...-8850773 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 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 Wallet

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

func FromPrivateKey

func FromPrivateKey(privateKey string) (*Wallet, error)

func (*Wallet) Address

func (w *Wallet) Address() address.Address

func (*Wallet) PublicKey

func (w *Wallet) PublicKey() []byte

func (*Wallet) SignMessage

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

func (*Wallet) SignTransaction

func (w *Wallet) SignTransaction(tx *core.Transaction) ([]byte, error)

Jump to

Keyboard shortcuts

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