package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Sc_rollup_reveal_hash/index.html
Module Tezos_raw_protocol_alpha.Sc_rollup_reveal_hash
Source
The type of a reveal hash.
The hashing schemes supported by the reveal hash.
A Map module for storing reveal-hash-indexed values.
size ~scheme
returns the size of reveal hashes using the scheme
specified in input.
zero ~scheme
returns the reveal hash corresponding to the zero hash for the scheme
specified in input.
Formatting function for reveal-hashes.
equal hash1 hash2
checks if the two reveal-hashes hash1
and hash2
are equal. This function must preserve the equality of individual supported hashing schemes. If hash1
and hash2
are hashes obtained from the same supported hashing scheme, then the equal
function from that hashing scheme is used to determine whether they are equivalent. Otherwise, they are different.
compare hash1 hash2
compares the values of the reveal hashes hash1
and hash2
. This function must preserve the ordering of individual supported hashing scheme. If hash1
and hash2
are reveal-hashes obtained from the same hashing scheme, then compare hash1 hash2
should return the same result of the compare function exposed by the hash module corresponding to their hashing scheme.
The encoding of reveal hashes.
hash_string ~scheme ?key strings
hashes strings
using the supported hashing scheme
given in input.
hash_bytes ~scheme ?key strings
hashes bytes
using the supported hashing scheme
given in input.
scheme_of_hash
hash returns the supported hashing scheme that was used to obtain hash
.