Mavryk_benchmark.Crypto_samplersFunctions for sampling (pk,pkh,sk) triplets.
This module provides an implementation for finite pools of random (pk,pkh,sk) triplets. The pools grows to the target size as the user samples from it. When the target size is reached, sampling is performed in a round-robin fashion.
module type Param_S = sig ... endmodule type P_Finite_key_pool_S = sig ... endmodule V0 : sig ... endmodule V1 : sig ... endmodule V_latest : sig ... endinclude module type of V_latestmodule type Finite_key_pool_S =
P_Finite_key_pool_S
with type public_key_hash :=
Mavryk_crypto.Signature.V_latest.Public_key_hash.t
and type public_key := Mavryk_crypto.Signature.V_latest.Public_key.t
and type secret_key := Mavryk_crypto.Signature.V_latest.Secret_key.tmodule Make_finite_key_pool
(Arg : Param_S with type algo := Mavryk_crypto.Signature.V_latest.algo) :
Finite_key_pool_SCreate a finite key pool.