Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransactionGoToCapn ¶
func TransactionGoToCapn(seg *capn.Segment, src *Transaction) capnp.TransactionCapn
TransactionGoToCapn is a helper function to copy fields from a Transaction object to a TransactionCapn object
Types ¶
type Transaction ¶
type Transaction struct { Nonce uint64 `capid:"0"` Value *big.Int `capid:"1"` RcvAddr []byte `capid:"2"` SndAddr []byte `capid:"3"` GasPrice uint64 `capid:"4"` GasLimit uint64 `capid:"5"` Data []byte `capid:"6"` Signature []byte `capid:"7"` Challenge []byte `capid:"8"` }
Transaction holds all the data needed for a value transfer
func TransactionCapnToGo ¶
func TransactionCapnToGo(src capnp.TransactionCapn, dest *Transaction) *Transaction
TransactionCapnToGo is a helper function to copy fields from a TransactionCapn object to a Transaction object
Click to show internal directories.
Click to hide internal directories.