Documentation
¶
Overview ¶
Package wallet contains the blockchain wallet implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWalletID ¶
func GetWalletID(key *ecdsa.PrivateKey) database.AccountID
GetWalletIDFromKey returns the wallet ID from the provided private key.
Types ¶
type Wallet ¶
type Wallet struct {
ID database.AccountID
ChainID uint16
Nonce uint64
Balance uint64
// contains filtered or unexported fields
}
func New ¶
New initializes a new Wallet instance. It now takes a context parameter to allow setting deadlines on the readiness check request.
Click to show internal directories.
Click to hide internal directories.