Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPubKey ¶
Types ¶
type TXInput ¶
func (*TXInput) CanUnlockOutputWith ¶
type TXOutput ¶
func (*TXOutput) CanBeUnlockedWith ¶
type Transaction ¶
func NewCoinbaseTX ¶
func NewCoinbaseTX(to, data string) *Transaction
func (*Transaction) IsCoinbaseTx ¶
func (tx *Transaction) IsCoinbaseTx() bool
func (*Transaction) SetId ¶
func (tx *Transaction) SetId()
type Wallet ¶
type Wallet struct { PrivateKey ecdsa.PrivateKey PublicKey []byte }
func (Wallet) GetAddress ¶
* get public key hash * get checksum from version, public key hash * generate adress by encoding checksum, public key hash, version
Click to show internal directories.
Click to hide internal directories.