functor for master sigs
This commit is contained in:
parent
77d10ee93c
commit
cfc87f50b6
5 changed files with 87 additions and 114 deletions
|
|
@ -184,14 +184,9 @@ module MK (R : R) : SIGNATURE with type r := R.r = struct
|
|||
end
|
||||
|
||||
module MK_master_sig (R : R) = struct
|
||||
open Crypto
|
||||
include MK (R)
|
||||
|
||||
let to_string = Bin.to_string R.bin
|
||||
|
||||
let verify t r =
|
||||
EddsaSignature.verify ~key:Config.Exchange.master_public_key t
|
||||
~msg:(to_string r)
|
||||
let verify = verify Config.Exchange.master_public_key
|
||||
end
|
||||
|
||||
(* ---- *)
|
||||
|
|
@ -315,7 +310,7 @@ module DenominationKeyValidity = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module ExchangeSigningKeyValidity = struct
|
||||
|
|
@ -342,7 +337,7 @@ module ExchangeSigningKeyValidity = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterDenominationKeyRevocation = struct
|
||||
|
|
@ -360,7 +355,7 @@ module MasterDenominationKeyRevocation = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterSigningKeyRevocation = struct
|
||||
|
|
@ -378,7 +373,7 @@ module MasterSigningKeyRevocation = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterAddAuditor = struct
|
||||
|
|
@ -402,7 +397,7 @@ module MasterAddAuditor = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterDelAuditor = struct
|
||||
|
|
@ -423,7 +418,7 @@ module MasterDelAuditor = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module GlobalFees = struct
|
||||
|
|
@ -478,7 +473,7 @@ module GlobalFees = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterWireDetails = struct
|
||||
|
|
@ -516,7 +511,7 @@ module MasterWireDetails = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterAddWire = struct
|
||||
|
|
@ -558,7 +553,7 @@ module MasterAddWire = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterDelWire = struct
|
||||
|
|
@ -579,7 +574,7 @@ module MasterDelWire = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterDrainProfit = struct
|
||||
|
|
@ -607,7 +602,7 @@ module MasterDrainProfit = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module MasterAmlOfficerStatus = struct
|
||||
|
|
@ -633,7 +628,7 @@ module MasterAmlOfficerStatus = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module PartnerConfiguration = struct
|
||||
|
|
@ -672,7 +667,7 @@ module PartnerConfiguration = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module WadPartnerSignature = struct
|
||||
|
|
@ -748,7 +743,7 @@ module MasterWireFee = struct
|
|||
|> sealr
|
||||
end
|
||||
|
||||
include MK (R)
|
||||
include MK_master_sig (R)
|
||||
end
|
||||
|
||||
module ExchangeKeyValidity = struct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue