Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaData ¶
type MetaData struct { SenderPrivateKey *ecdsa.PrivateKey SenderPublicKey *ecdsa.PublicKey SenderBlockchainAddress string RecipientBlockchainAddress string Value float32 }
func NewMetaData ¶
func (*MetaData) GenerateSignature ¶
func (*MetaData) MarshalJSON ¶
type Transaction ¶
type Transaction struct { SenderBlockChainAddress string RecipientBlockChainAddress string Value float32 Hash [32]byte TimeStamp string }
func New ¶
func New(senderBlockChainAddress string, recipientBlockChainAddress string, value float32) *Transaction
func (*Transaction) MarshalJSON ¶
func (t *Transaction) MarshalJSON() ([]byte, error)
func (*Transaction) TxHash ¶
func (t *Transaction) TxHash() [32]byte
Click to show internal directories.
Click to hide internal directories.