use correct denomination hash (with age-mask and cipher)
This commit is contained in:
parent
9c87aa63ea
commit
3cef594e1f
14 changed files with 142 additions and 61 deletions
|
|
@ -30,9 +30,10 @@ module Future_keys = struct
|
|||
fee_refund= _;
|
||||
denom_secmod_sig;
|
||||
} =
|
||||
let h_denom_pub =
|
||||
DenominationHash.hash (DenominationKey.to_octets denom_pub)
|
||||
let rsa_pub =
|
||||
match denom_pub with DenominationKey.Rsa denom -> denom.rsa_pub
|
||||
in
|
||||
let h_denom_pub = DenominationHash.hash_of_rsa rsa_pub in
|
||||
let h_section_name = Hash.Cstring.H64.hash section_name in
|
||||
let anchor_time = stamp_start in
|
||||
let duration_withdraw =
|
||||
|
|
@ -96,8 +97,10 @@ module Future_keys = struct
|
|||
fee_refund;
|
||||
denom_secmod_sig= _;
|
||||
} =
|
||||
let octets = DenominationKey.to_octets denom_pub in
|
||||
let h_denom_pub = DenominationHash.hash octets in
|
||||
let rsa_pub =
|
||||
match denom_pub with DenominationKey.Rsa denom -> denom.rsa_pub
|
||||
in
|
||||
let h_denom_pub = DenominationHash.hash_of_rsa rsa_pub in
|
||||
let master_sig =
|
||||
let open Signatures.DenominationKeyValidity in
|
||||
let master = EddsaPrivateKey.(pub_of_priv master_key) in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue