package
0.0.0-20230203010516-6d4bf48beedd
Repository: https://github.com/onyx-protocol/onyx.git
Documentation: pkg.go.dev
# Packages
Package bc provides the fundamental blockchain data structures used in
the Chain Protocol.
Package patricia computes the Merkle Patricia Tree Hash of a set of bit strings, as described in the Chain Protocol spec.
Package prottest provides utilities for Chain Protocol testing.
No description provided by the author
No description provided by the author
Package vm implements the VM described in Chain Protocol 1.
# Functions
NewChain returns a new Chain using store as the underlying storage.
No description provided by the author
# Variables
ErrBadBlock is returned when a block is invalid.
ErrBadStateRoot is returned when the computed assets merkle root disagrees with the one declared in a block header.
ErrBadTx is returned for transactions failing validation.
ErrTheDistantFuture is returned when waiting for a blockheight too far in excess of the tip of the blockchain.
# Interfaces
Store provides storage for blockchain data: blocks and state tree snapshots.