ligo/src/proto/bootstrap/seed_storage.mli

24 lines
950 B
OCaml
Raw Normal View History

2016-09-08 21:13:10 +04:00
(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2016. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
type error +=
| Precomputed_seed
| Invalid_cycle
val init:
Storage.t -> Storage.t tzresult Lwt.t
val compute_for_cycle:
Storage.t -> Cycle_repr.t -> Storage.t tzresult Lwt.t
val for_cycle: Storage.t -> Cycle_repr.t -> Seed_repr.seed tzresult Lwt.t
val clear_cycle:
Storage.t -> Cycle_repr.t -> Storage.t tzresult Lwt.t