2018-01-15 22:09:25 +01:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2018-02-05 19:23:18 +01:00
|
|
|
open Proto_alpha
|
|
|
|
|
2018-06-04 14:35:06 +02:00
|
|
|
(** Returns a fresh nonce and its corresponding hash (and stores them). *)
|
|
|
|
val generate: unit -> Nonce_hash.t * Alpha_context.Nonce.t
|
|
|
|
val get: Nonce_hash.t -> Alpha_context.Nonce.t
|
|
|
|
val forget_all: unit -> unit
|