Documentation ¶
Overview ¶
The tx package implements transactions for cryptocurrency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CoinMakerPk = pk1
View Source
var CoinMakerSk = sk1
Functions ¶
This section is empty.
Types ¶
type TxArray ¶
type TxArray struct {
// contains filtered or unexported fields
}
func (*TxArray) AppendNewTx ¶
func (txa *TxArray) AppendNewTx( senderName string, receiverName string, senderPk *ed25519.PublicKey, receiverPk *ed25519.PublicKey, senderSk *ed25519.PrivateKey, value int, )
Add a new tx to txArray
func (*TxArray) PrintTxHistory ¶
func (txa *TxArray) PrintTxHistory()
Click to show internal directories.
Click to hide internal directories.