+ AuditorDenominationKey

This commit is contained in:
swrup 2025-12-04 17:59:07 +01:00
parent e19db93d2c
commit 8a6ee6cfda
2 changed files with 84 additions and 17 deletions

View file

@ -840,3 +840,20 @@ module AggregateTransferFee = struct
|> mem "sig" MasterWireFeePS.jsont ~enc:sig_
|> finish
end
module AuditorDenominationKey = struct
type t = {
denom_pub_h: HashCode.t;
auditor_sig: ExchangeKeyValidityPS.t;
}
let jsont =
let make denom_pub_h auditor_sig = { denom_pub_h; auditor_sig } in
let denom_pub_h v = v.denom_pub_h in
let auditor_sig v = v.auditor_sig in
let open Jsont.Object in
map ~kind:"AuditorDenominationKey" make
|> mem "denom_pub_h" HashCode.jsont ~enc:denom_pub_h
|> mem "auditor_sig" ExchangeKeyValidityPS.jsont ~enc:auditor_sig
|> finish
end