This commit is contained in:
swrup 2025-11-30 23:02:49 +01:00
parent d4c1181946
commit bf221bb352
2 changed files with 8 additions and 4 deletions

View file

@ -95,6 +95,8 @@ module DenominationKeyAnnouncementPS = struct
duration_withdraw: TimeRelativeNBO.t; duration_withdraw: TimeRelativeNBO.t;
} }
type s = Crypto.EddsaSignature.t
let bin = let bin =
let open Bin in let open Bin in
Purpose.make_bin Taler_signatures.sm_rsa_denomination_key @@ fun purpose -> Purpose.make_bin Taler_signatures.sm_rsa_denomination_key @@ fun purpose ->

View file

@ -31,8 +31,9 @@ let mk_future_denom denom_key_signf
let duration_withdraw = let duration_withdraw =
Timestamp.diff stamp_start stamp_expire_withdraw |> Timestamp.of_span_exn Timestamp.diff stamp_start stamp_expire_withdraw |> Timestamp.of_span_exn
in in
let ps = { h_denom_pub; h_section_name; anchor_time; duration_withdraw } in { h_denom_pub; h_section_name; anchor_time; duration_withdraw }
ps |> Bin.to_string bin |> denom_key_signf |> Bin.to_string bin
|> denom_key_signf
in in
FutureDenom. FutureDenom.
{ {
@ -60,8 +61,9 @@ let mk_future_signkey signkey_signf
let duration = let duration =
Timestamp.diff stamp_start stamp_expire |> Timestamp.of_span_exn Timestamp.diff stamp_start stamp_expire |> Timestamp.of_span_exn
in in
let ps = { exchange_pub; anchor_time; duration } in { exchange_pub; anchor_time; duration }
ps |> Bin.to_string bin |> signkey_signf |> Bin.to_string bin
|> signkey_signf
in in
FutureSignKey. FutureSignKey.
{ key= pub; stamp_start; stamp_expire; stamp_end; signkey_secmod_sig } { key= pub; stamp_start; stamp_expire; stamp_end; signkey_secmod_sig }