2026-01-22 05:12:20 +01:00
|
|
|
module type S = sig
|
|
|
|
|
open Crypto
|
|
|
|
|
|
2026-02-17 12:40:36 +01:00
|
|
|
val sm_pubkey : eddsa_pub
|
2026-01-22 05:12:20 +01:00
|
|
|
val sign_with_sm_key : string -> eddsa_sig
|
|
|
|
|
val sign_with_signkey : pub:eddsa_pub -> string -> eddsa_sig
|
|
|
|
|
val verify_with_master_key : eddsa_sig -> msg:string -> (unit, string) result
|
|
|
|
|
val verify_with_sm_key : eddsa_sig -> msg:string -> (unit, string) result
|
|
|
|
|
|
|
|
|
|
val verify_with_signkey :
|
|
|
|
|
pub:eddsa_pub -> eddsa_sig -> msg:string -> (unit, string) result
|
|
|
|
|
|
2026-02-17 12:40:36 +01:00
|
|
|
val get_signkeys : unit -> Signkey.t list
|
|
|
|
|
val get_denominations : unit -> Denomination.t list
|
|
|
|
|
val get_future_signkeys : unit -> Api.FutureSignKey.t list
|
|
|
|
|
val get_future_denominations : unit -> Api.FutureDenom.t list
|
|
|
|
|
val find_signkey : eddsa_pub -> Signkey.t option
|
2026-02-17 12:48:11 +01:00
|
|
|
val find_denomination : denom_hash -> Denomination.t option
|
2025-12-15 15:01:40 +01:00
|
|
|
|
2026-02-17 12:40:36 +01:00
|
|
|
val certify_future_signkey :
|
|
|
|
|
eddsa_pub ->
|
|
|
|
|
Signatures.ExchangeSigningKeyValidity.t ->
|
2026-01-22 05:12:20 +01:00
|
|
|
(unit, string) result
|
2025-12-16 14:20:41 +01:00
|
|
|
|
2026-02-17 12:40:36 +01:00
|
|
|
val certify_future_denomination :
|
2026-02-17 12:48:11 +01:00
|
|
|
denom_hash -> Signatures.DenominationKeyValidity.t -> (unit, string) result
|
2026-02-17 12:40:36 +01:00
|
|
|
|
2026-01-22 05:12:20 +01:00
|
|
|
val revoke_signkey :
|
2026-02-05 19:26:59 +01:00
|
|
|
eddsa_pub ->
|
|
|
|
|
Signatures.MasterSigningKeyRevocation.t ->
|
|
|
|
|
(unit, string) result
|
2025-12-16 14:20:41 +01:00
|
|
|
|
2026-01-22 05:12:20 +01:00
|
|
|
val revoke_denomination :
|
2026-02-17 12:48:11 +01:00
|
|
|
denom_hash ->
|
2026-02-05 19:26:59 +01:00
|
|
|
Signatures.MasterDenominationKeyRevocation.t ->
|
2026-01-22 05:12:20 +01:00
|
|
|
(unit, string) result
|
2026-01-24 08:23:37 +01:00
|
|
|
|
2026-02-17 12:40:36 +01:00
|
|
|
val save : unit -> (unit, string) result
|
2026-01-22 05:12:20 +01:00
|
|
|
end
|
2025-12-15 15:01:40 +01:00
|
|
|
|
2026-01-22 05:12:20 +01:00
|
|
|
module Make (_ : Pg.CONN) : S
|