rm non-NBO Bin.t; rename time modules
This commit is contained in:
parent
4f473c003a
commit
d69b49a335
13 changed files with 306 additions and 359 deletions
10
src/keys.ml
10
src/keys.ml
|
|
@ -87,11 +87,12 @@ module Make (Conn : Pg.CONN) : S = struct
|
|||
l
|
||||
|
||||
let make_future_sk ~pub ~start ~expire =
|
||||
let open Time in
|
||||
let stamp_start = Timestamp.of_absolute start in
|
||||
let stamp_expire = Timestamp.of_absolute expire in
|
||||
let stamp_end =
|
||||
Timestamp.of_absolute
|
||||
@@ Time.Absolute.add start Config.Exchange.signkey_legal_duration
|
||||
@@ TimeAbsolute.add start Config.Exchange.signkey_legal_duration
|
||||
in
|
||||
let signkey_secmod_sig =
|
||||
let open Signatures.SigningKeyAnnouncement in
|
||||
|
|
@ -104,6 +105,7 @@ module Make (Conn : Pg.CONN) : S = struct
|
|||
{ key= pub; stamp_start; stamp_expire; stamp_end; signkey_secmod_sig }
|
||||
|
||||
let make_future_dn ~coin ~pub ~start =
|
||||
let open Time in
|
||||
let Config.Coin.
|
||||
{
|
||||
section_name;
|
||||
|
|
@ -123,13 +125,13 @@ module Make (Conn : Pg.CONN) : S = struct
|
|||
in
|
||||
let stamp_start = Timestamp.of_absolute start in
|
||||
let stamp_expire_withdraw =
|
||||
Timestamp.of_absolute @@ Time.Absolute.add start duration_withdraw
|
||||
Timestamp.of_absolute @@ TimeAbsolute.add start duration_withdraw
|
||||
in
|
||||
let stamp_expire_deposit =
|
||||
Timestamp.of_absolute @@ Time.Absolute.add start duration_spend
|
||||
Timestamp.of_absolute @@ TimeAbsolute.add start duration_spend
|
||||
in
|
||||
let stamp_expire_legal =
|
||||
Timestamp.of_absolute @@ Time.Absolute.add start duration_legal
|
||||
Timestamp.of_absolute @@ TimeAbsolute.add start duration_legal
|
||||
in
|
||||
let open Api in
|
||||
let rsa_denomination_key =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue