Expand description
Verification functions
Functionsยง
- apply_
producer_ transaction - Apply given producer
Transaction
to the provided overlay, without formal verification. Returns transaction signature public key. Additionally, append its hash to the provided Merkle tree. - apply_
transaction - Apply given
Transaction
to the provided overlay. Additionally, append its hash to the provided Merkle tree. - apply_
transactions ๐ - Apply given set of
Transaction
in sequence, without formal verification. In case any of the transactions fail, they will be returned to the caller as an error. Additionally, their hash is appended to the provided Merkle tree. - validate_
block - Validate provided block according to set rules.
- validate_
blockchain - A blockchain is considered valid, when every block is valid, based on validate_block checks. Be careful as this will try to load everything in memory.
- verify_
block - Verify given
BlockInfo
, and apply it to the provided overlay. - verify_
checkpoint_ block - Verify given checkpoint
BlockInfo
, and apply it to the provided overlay. - verify_
fork_ proposal - Verify given
Proposal
against provided fork state. - verify_
genesis_ block - Verify given genesis
BlockInfo
, and apply it to the provided overlay. - verify_
producer_ signature - Verify block proposer signature, using the producer transaction signature as signing key over blocks header hash.
- verify_
producer_ transaction - Verify provided producer
Transaction
. - verify_
proposal - Verify given
Proposal
against provided consensus state. - verify_
transaction - Verify WASM execution, signatures, and ZK proofs for a given
Transaction
, and apply it to the provided overlay. Additionally, append its hash to the provided Merkle tree. - verify_
transactions - Verify a set of
Transaction
in sequence and apply them if all are valid.