NBO bin.t only; rename time modules

This commit is contained in:
swrup 2026-02-24 17:51:30 +01:00
parent 4f473c003a
commit 406bd4365d
13 changed files with 244 additions and 297 deletions

View file

@ -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 =