+ SigningKeyAnnouncementPS.bin
This commit is contained in:
parent
c946cb0358
commit
37675c2aee
1 changed files with 20 additions and 9 deletions
|
|
@ -466,6 +466,26 @@ module DenominationKeyAnnouncementPS = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
module SigningKeyAnnouncementPS = struct
|
||||
(* purpose.purpose = TALER_SIGNATURE_SM_SIGNING_KEY *)
|
||||
type t = {
|
||||
exchange_pub: ExchangePublicKeyP.t;
|
||||
anchor_time: TimeAbsoluteNBO.t;
|
||||
duration: TimeRelativeNBO.t;
|
||||
}
|
||||
|
||||
let bin =
|
||||
let open Bin in
|
||||
Purpose.make_bin Taler_signatures.sm_signing_key @@ fun purpose ->
|
||||
record (fun _purpose exchange_pub anchor_time duration ->
|
||||
{ exchange_pub; anchor_time; duration })
|
||||
|+ Purpose.field purpose
|
||||
|+ field ExchangePublicKeyP.bin (fun t -> t.exchange_pub)
|
||||
|+ field TimeAbsoluteNBO.bin (fun t -> t.anchor_time)
|
||||
|+ field TimeRelativeNBO.bin (fun t -> t.duration)
|
||||
|> sealr
|
||||
end
|
||||
|
||||
module SingleWithdrawRequestPS = struct
|
||||
(* purpose.purpose = TALER_SIGNATURE_WALLET_RESERVE_WITHDRAW *)
|
||||
type t = {
|
||||
|
|
@ -947,15 +967,6 @@ module CoinPurseRefundConfirmationPS = struct
|
|||
}
|
||||
end
|
||||
|
||||
module SigningKeyAnnouncementPS = struct
|
||||
(* purpose.purpose = TALER_SIGNATURE_SM_SIGNING_KEY *)
|
||||
type t = {
|
||||
exchange_pub: ExchangePublicKeyP.t;
|
||||
anchor_time: TimeAbsoluteNBO.t;
|
||||
duration: TimeRelativeNBO.t;
|
||||
}
|
||||
end
|
||||
|
||||
module MasterDenominationKeyRevocationPS = struct
|
||||
(* purpose.purpose = TALER_SIGNATURE_MASTER_DENOMINATION_KEY_REVOKED *)
|
||||
type t = { h_denom_pub: DenominationHash.t }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue