Expand description
Verification functions
Functionsยง
- 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 givenTransaction
to the provided overlay. Additionally, append its hash to the provided Merkle tree. - apply_
transactions ๐Apply given set ofTransaction
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 provided block according to set rules.
- 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 given
BlockInfo
, and apply it to the provided overlay. - Verify given checkpoint
BlockInfo
, and apply it to the provided overlay. - Verify given
Proposal
against provided fork state. - Verify given genesis
BlockInfo
, and apply it to the provided overlay. - Verify block proposer signature, using the producer transaction signature as signing key over blocks header hash.
- Verify provided producer
Transaction
. - Verify given
Proposal
against provided consensus state. - 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 a set of
Transaction
in sequence and apply them if all are valid.