Mavryk_raw_protocol_001_PtAtLas.Context_binary_proof
val check_is_binary :
Mavryk_protocol_environment_001_PtAtLas.Context.Proof.tree
Mavryk_protocol_environment_001_PtAtLas.Context.Proof.t ->
unit Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
is_binary proof
will fail if proof
does not claim to be a Merkle proof of a binary tree compatible with the one defined in Context_binary
.
Note: It is very important to systematically check this before calling the verify_proof
exposed in the protocol, since this function does not discriminate between binary and 32-ary proofs.