Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct { PrivateKey ecdsa.PrivateKey PublicKey []byte }
Wallet stores private and public keys
func (*Wallet) CreateTransaction ¶
func (w *Wallet) CreateTransaction(to string, amount int, UTXOSet *chainstate.UTXOSet) *transaction.Transaction
CreateTransaction a new transaction
func (*Wallet) GetPrivateKey ¶
func (w *Wallet) GetPrivateKey() ecdsa.PrivateKey
func (*Wallet) GetPublicKey ¶
type Wallets ¶
Wallets stores a collection of wallets
func NewWallets ¶
NewWallets creates Wallets and fills it from a file if it exists
func (*Wallets) CreateWallet ¶
CreateWallet adds a Wallet to Wallets
func (*Wallets) GetAddresses ¶
GetAddresses returns an array of addresses stored in the wallet file
func (*Wallets) GetWallets ¶
func (*Wallets) LoadFromFile ¶
LoadFromFile loads wallets from the file
func (Wallets) SaveToFile ¶
SaveToFile saves wallets to a file
Click to show internal directories.
Click to hide internal directories.