Mavryk_raw_protocol_alpha.Nonce_storageThis module provides types and functions to manipulate nonces.
A nonce is a byte sequence of fixed length, which is supposed to be random and used only once, provided by a block producer and used to generate a random seed (see Seed_repr).
type t = Seed_repr.noncetype nonce = tval encoding : nonce Mavryk_protocol_environment_alpha.Data_encoding.ttype unrevealed = Storage.Seed.unrevealed_nonce = {nonce_hash : Nonce_hash.t;delegate : Mavryk_protocol_environment_alpha.Signature.Public_key_hash.t;}val check_unrevealed :
Raw_context.t ->
Level_repr.t ->
nonce ->
unit Mavryk_protocol_environment_alpha.Error_monad.tzresult
Mavryk_protocol_environment_alpha.Lwt.tChecks that a nonce revelation operation can be safely applied.
val of_bytes :
bytes ->
nonce Mavryk_protocol_environment_alpha.Error_monad.tzresultval hash : nonce -> Nonce_hash.tval check_hash : nonce -> Nonce_hash.t -> bool