package
0.0.0-20230203010516-6d4bf48beedd
Repository: https://github.com/onyx-protocol/onyx.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
DurationMillis converts a time.Duration to a number of milliseconds.
EntryID computes the identifier of an entry, as the hash of its body plus some metadata.
MerkleRoot creates a merkle tree from a slice of transactions and returns the root hash of the tree.
Millis converts a time.Time to a number of milliseconds since 1970.
MillisDuration coverts milliseconds to a time.Duration.
No description provided by the author
NewBlockHeader creates a new BlockHeader and populates its body.
No description provided by the author
NewIssuance creates a new Issuance.
NewMux creates a new Mux.
NewNonce creates a new Nonce.
NewOutput creates a new Output.
NewRetirement creates a new Retirement.
NewSpend creates a new Spend.
NewTimeRange creates a new TimeRange.
NewTxHeader creates an new TxHeader.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
This message type duplicates Hash, above.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Tx is a wrapper for the entries-based representation of a transaction.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Entry is the interface implemented by each addressable unit in a blockchain: transaction components such as spends, issuances, outputs, and retirements (among others), plus blockheaders.