Module casper_node::types
source · [−]Expand description
Common types used across multiple components.
Re-exports
pub use chainspec::Chainspec;pub use error::BlockValidationError;Modules
The chainspec is a set of configuration options for the network. All validators must apply the same set of options in order to join and act as a peer in a given network.
Errors that may be emitted by methods for common types.
Types which are serializable to JSON, which map to types defined outside this module.
Structs
A struct containing a signature and the public key of the signer.
A proto-block after execution, with the resulting post-state-hash. This is the core component of the Casper linear blockchain.
The body portion of a block.
The header portion of a Block.
A storage representation of finality signatures with the associated block hash.
Summary information from the chainspec.
A deploy; an item containing a smart contract along with the requester’s signature(s).
The cryptographic hash of a Deploy.
The header portion of a Deploy.
The deploy mutable metadata.
The hash of a deploy (or transfer) together with signatures approving it for execution.
A deploy combined with a potential set of finalized approvals.
Error returned when a Deploy is too large.
A validator’s signature of a block, to confirm it is finalized. Clients and joining nodes should wait until the signers’ combined weight exceeds their fault tolerance threshold before accepting the block as finalized.
A set of approvals that has been agreed upon by consensus to approve of a specific deploy.
The piece of information that will become the content of a future block after it was finalized and before execution happened yet.
Result for “info_get_status” RPC response.
A JSON-friendly representation of Block.
JSON representation of a block header.
A BlockBody that has been hashed so its parts may be stored as a Merkle linked-list.
A fragment of a Merkle-treeified BlockBody.
A node in a Merkle linked-list used for hashing data structures.
Node configuration.
Map of peer IDs to network addresses.
Data feed for client “info_get_status” endpoint.
A time difference between two timestamps.
A timestamp type, representing a concrete moment in time.
Enums
A representation of the way in which a deploy failed validation checks.
Errors other than validation failures relating to Deploys.
The DeployHash stored in a way distinguishing between WASM deploys
and transfers.
Exit codes which should be used by the casper-node binary, and provided by the initializer reactor to the binary.
The hashing algorithm used for the header and the body of a block
An identifier for a specific type implementing the Item trait. Each different implementing
type should have a unique Tag variant.
Traits
An object-safe RNG trait that requires a cryptographically strong random number generator.
Indicates that a type knows how to approximate its memory usage.
A trait which allows an implementing type to be used by the gossiper and fetcher components, and
furthermore allows generic network messages to include this type due to the provision of the
type-identifying TAG.
Type Definitions
The cryptographically secure RNG used throughout the node.
Derive Macros
Automatically derive the DataSize trait for a type.
