Tezos_raw_protocol_008_PtEdo2Zk.Seed_reprTezos Protocol Implementation - Random number generation
This is not expected to be a good cryptographic random number generator. In particular this is supposed to be used in situations where the seed is a globally known information.
The only expected property is: It should be difficult to find a seed such that the generated sequence is a given one.
Generates the next random value as a bounded int32
val empty : seedval initial_seeds : int -> seed listinitial_seeds n generates the first n seeds for which there are no nonces. The first seed is a constant value. The kth seed is the hash of seed (k-1) concatenated with a constant.
val make_nonce :
bytes ->
nonce Tezos_protocol_environment_008_PtEdo2Zk.Error_monad.tzresultUse a byte sequence as a nonce
val hash : nonce -> Nonce_hash.tCompute the has of a nonce
val check_hash : nonce -> Nonce_hash.t -> boolcheck_hash nonce hash is true if the nonce correspond to the hash
val nonce_hash_key_part : Nonce_hash.t -> string list -> string listFor using nonce hashes as keys in the hierarchical database
val initial_nonce_0 : nonceval initial_nonce_hash_0 : Nonce_hash.tval nonce_encoding :
nonce Tezos_protocol_environment_008_PtEdo2Zk.Data_encoding.tval seed_encoding :
seed Tezos_protocol_environment_008_PtEdo2Zk.Data_encoding.t