wallet

package
v0.0.0-...-8645ea2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(ripeMdHash []byte) []byte

func NewKeyPair

func NewKeyPair() (ecdsa.PrivateKey, []byte)

func PublicKeyHash

func PublicKeyHash(publicKey []byte) []byte

Types

type Wallet

type Wallet struct {
	//ecdsa = eliptical curve digital signiture algorithm
	PrivateKey ecdsa.PrivateKey
	PublicKey  []byte
}

func MakeWallet

func MakeWallet() *Wallet

func (*Wallet) Address

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

type Wallets

type Wallets struct {
	Wallets map[string]*Wallet
}

func CreateWallets

func CreateWallets() (*Wallets, error)

func (*Wallets) AddWallet

func (ws *Wallets) AddWallet() string

func (*Wallets) GetAllAddresses

func (ws *Wallets) GetAllAddresses() []string

func (Wallets) GetWallet

func (ws Wallets) GetWallet(address string) Wallet

func (*Wallets) LoadFile

func (ws *Wallets) LoadFile() error

func (*Wallets) SaveFile

func (ws *Wallets) SaveFile()

Jump to

Keyboard shortcuts

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