Module ergo_lib_c_core::nipopow
source · Expand description
Bindings for NiPoPow
Structs
- A structure representing NiPoPow proof.
- A verifier for PoPoW proofs. During its lifetime, it processes many proofs with the aim of deducing at any given point what is the best (sub)chain rooted at the specified genesis.
Functions
- Parse from JSON.
- Implementation of the ≥ algorithm from
KMZ17
, see Algorithm 4 - Get suffix head
- JSON representation as text
- Returns chain of
BlockHeader
s from the best proof. - If a best proof exists, allocate a copy and store in
best_proof_out
and returnOk(true)
. If such a proof doesn’t exist return Ok(false). - Create new instance
- Process given proof