better sk|dn init; clean up

This commit is contained in:
swrup 2026-02-17 09:30:20 +01:00
parent 77d5327745
commit d1da5b9f1a
13 changed files with 464 additions and 546 deletions

18
src/denomination.ml Normal file
View file

@ -0,0 +1,18 @@
open Crypto
type t = {
pub: rsa_pub;
value: Amount.t;
stamp_start: Timestamp.t;
stamp_expire_withdraw: Timestamp.t;
stamp_expire_deposit: Timestamp.t;
stamp_expire_legal: Timestamp.t;
fee_withdraw: Amount.t;
fee_deposit: Amount.t;
fee_refresh: Amount.t;
fee_refund: Amount.t;
age_mask: int;
h_pub: denom_hash;
master_sig: Signatures.DenominationKeyValidity.t;
revoked_sig: Signatures.MasterDenominationKeyRevocation.t option;
}