tezos-protocol-alpha.raw
Alpha_context.Nonce
This module re-exports definitions from Nonce_storage.
Nonce_storage
tezos-protocol-alpha
tezos-protocol-alpha.environment
tezos-protocol-alpha.lifted
tezos-protocol-alpha.parameters
type t
type nonce = t
val encoding : nonce Tezos_protocol_environment_alpha.Data_encoding.t
type unrevealed = {
nonce_hash : Nonce_hash.t;
delegate : public_key_hash;
}
val record_hash : context -> unrevealed -> context Tezos_protocol_environment_alpha.Error_monad.tzresult Tezos_protocol_environment_alpha.Lwt.t
val check_unrevealed : context -> Level.t -> nonce -> unit Tezos_protocol_environment_alpha.Error_monad.tzresult Tezos_protocol_environment_alpha.Lwt.t
See Nonce_storage.check_unrevealed.
Nonce_storage.check_unrevealed
val reveal : context -> Level.t -> nonce -> context Tezos_protocol_environment_alpha.Error_monad.tzresult Tezos_protocol_environment_alpha.Lwt.t
type status =
| Unrevealed of unrevealed
| Revealed of nonce
val get : context -> Level.t -> status Tezos_protocol_environment_alpha.Error_monad.tzresult Tezos_protocol_environment_alpha.Lwt.t
val of_bytes : bytes -> nonce Tezos_protocol_environment_alpha.Error_monad.tzresult
val hash : nonce -> Nonce_hash.t
val check_hash : nonce -> Nonce_hash.t -> bool