Documentation ¶
Index ¶
- func Checksum(ripeMdHash []byte) []byte
- func NewKeyPair() (ecdsa.PrivateKey, []byte)
- func PublicKeyHash(publicKey []byte) []byte
- type UTXOSet
- type Wallet
- func (w *Wallet) Address() []byte
- func (wt *Wallet) CreateUTXOSet(chain *blockchain.BlockChain) *UTXOSet
- func (wt *Wallet) GetFileAddress() string
- func (wt *Wallet) GetFilePath() string
- func (wt *Wallet) LoadUTXOSet() *UTXOSet
- func (wt *Wallet) MakeTransaction(toaddress []byte, amount int, chain *blockchain.BlockChain)
- type Wallets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyPair ¶
func NewKeyPair() (ecdsa.PrivateKey, []byte)
func PublicKeyHash ¶
Types ¶
type UTXOSet ¶
func (*UTXOSet) AddUTXO ¶
func (us *UTXOSet) AddUTXO(utxo *blockchain.UTXO)
func (*UTXOSet) DelUTXO ¶
func (us *UTXOSet) DelUTXO(utxo *blockchain.UTXO)
func (*UTXOSet) GetBalance ¶
type Wallet ¶
type Wallet struct { RefName string // The nick name of your wallet, just for local test. PrivateKey ecdsa.PrivateKey PublicKey []byte }
func MakeWallet ¶
func (*Wallet) CreateUTXOSet ¶
func (wt *Wallet) CreateUTXOSet(chain *blockchain.BlockChain) *UTXOSet
func (*Wallet) GetFileAddress ¶
func (*Wallet) GetFilePath ¶
func (*Wallet) LoadUTXOSet ¶
func (*Wallet) MakeTransaction ¶
func (wt *Wallet) MakeTransaction(toaddress []byte, amount int, chain *blockchain.BlockChain)
type Wallets ¶
func CreateWallets ¶
func (*Wallets) GetAllAddresses ¶
func (Wallets) GetWalletByAddress ¶
func (*Wallets) GetWalletByName ¶
Click to show internal directories.
Click to hide internal directories.