package
Version:
v0.0.0-...-9cf374a
Opens a new window with list of versions in this module.
Published: Dec 5, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
¶
type Block struct {
Index int `json:"index" `
Hash string `json:"hash"`
Timestamp time.Time `json:"created_at"`
PrevHash string `json:"previous_hash"`
Nounce int64 `json:"nounce"`
Transactions []Transaction `json:"transactions"`
}
type Transaction struct {
Sender string `json:"sender"`
Receiver string `json:"receiver"`
Signature string `json:"signature"`
Amount int64 `json:"amount"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.