package tezos-protocol-014-PtKathma
Tezos/Protocol: economic-protocol definition
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-protocol-014-PtKathma.raw/Tezos_raw_protocol_014_PtKathma/Tx_rollup_l2_verifier/index.html
Module Tezos_raw_protocol_014_PtKathma.Tx_rollup_l2_verifier
Source
Source
val verify_proof :
Alpha_context.t ->
Tx_rollup_l2_apply.parameters ->
Alpha_context.Tx_rollup_message.t ->
Tx_rollup_l2_proof.t ->
agreed:Alpha_context.Tx_rollup_message_result.t ->
rejected:Alpha_context.Tx_rollup_message_result_hash.t ->
max_proof_size:int ->
Alpha_context.t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
verify_proof ctxt message proof ~agreed ~rejected ~max_proof_size
verifies a Merkle proof for a L2 message, starting from the state agreed
. If the proof
is correct, and the final Merkle hash is not equal to rejected
, then verify_proof
passes.
Note that if the proof is larger than max_proof_size
and the final Merkle hash is equal to rejected
, the needed proof for the rejected commitment is too large, thus, verify_proof
passes and the commitment is rejected.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>