Crate ergo_chain_types

Source
Expand description

Ergo blockchain types

Re-exports§

pub use ec_point::EcPoint;

Modules§

ec_point
Elliptic curve point.

Structs§

AutolykosSolution
Solution for an Autolykos PoW puzzle. In Autolykos v.1 all the four fields are used, in Autolykos v.2 only miner_pk and nonce fields are used.
Base16DecodedBytes
Transitioning type for Base16 decoded bytes
Base16EncodedBytes
Transitioning type for Base16 encoded bytes
BlockId
Block id
Digest
N-bytes array in a box. Digest32 is most type synonym.
ExtensionCandidate
Extension section of Ergo block. Contains key-value storage.
Header
Represents data of the block header available in Sigma propositions.
PeerAddr
Peer address
PreHeader
Block header with the current spendingTransaction, that can be predicted by a miner before it’s formation
Votes
Votes for changing system parameters

Enums§

ConnectionDirection
Direction of the connection to a peer
DigestNError
Invalid byte array size

Functions§

blake2b256_hash
Blake2b256 hash (256 bit)

Type Aliases§

ADDigest
AVL tree digest: root hash along with tree height (33 bytes)
Digest32
32 byte array used as ID of some value: block, transaction, etc. Usually this is as blake2b hash of serialized form