better relative time
This commit is contained in:
parent
0e46ea162a
commit
262aeaec66
8 changed files with 115 additions and 89 deletions
|
|
@ -75,9 +75,7 @@ let verify_future_signkey ~sm_signkey_pub
|
|||
{ key; stamp_start; stamp_expire; stamp_end= _; signkey_secmod_sig } =
|
||||
let exchange_pub = key in
|
||||
let anchor_time = stamp_start in
|
||||
let duration =
|
||||
Timestamp.diff stamp_start stamp_expire |> Timestamp.of_span_exn
|
||||
in
|
||||
let duration = Timestamp.diff stamp_start stamp_expire in
|
||||
let open Bin_sig.SigningKeyAnnouncement in
|
||||
verify ~key:sm_signkey_pub signkey_secmod_sig
|
||||
{ exchange_pub; anchor_time; duration }
|
||||
|
|
@ -103,9 +101,7 @@ let verify_future_denom ~sm_denom_pub
|
|||
in
|
||||
let h_section_name = Hash_64_cstr.hash section_name in
|
||||
let anchor_time = stamp_start in
|
||||
let duration_withdraw =
|
||||
Timestamp.diff stamp_start stamp_expire_withdraw |> Timestamp.of_span_exn
|
||||
in
|
||||
let duration_withdraw = Timestamp.diff stamp_start stamp_expire_withdraw in
|
||||
let open Bin_sig.DenominationKeyAnnouncement in
|
||||
verify ~key:sm_denom_pub denom_secmod_sig
|
||||
{ h_denom_pub; h_section_name; anchor_time; duration_withdraw }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue