JJ: Description from the destination commit:
clean up module mess JJ: Description from source commit: wip++
This commit is contained in:
parent
d2f334f4b1
commit
3380c229eb
6 changed files with 447 additions and 499 deletions
|
|
@ -12,7 +12,7 @@ type t = {
|
|||
fee_deposit: Amount.t;
|
||||
fee_refresh: Amount.t;
|
||||
fee_refund: Amount.t;
|
||||
h_pub: Binary_formats.DenominationHash.t;
|
||||
h_pub: Bin_type.DenominationHash.t;
|
||||
sign: string -> RsaSignature.t;
|
||||
master_sig: EddsaSignature.t option;
|
||||
}
|
||||
|
|
@ -47,7 +47,7 @@ let make
|
|||
let open Mirage_crypto_pk.Rsa in
|
||||
let priv = generate ~bits:rsa_keysize () in
|
||||
let pub = pub_of_priv priv in
|
||||
let h_pub = Binary_formats.DenominationHash.hash pub in
|
||||
let h_pub = Bin_type.DenominationHash.hash (RsaPublicKey.to_octets pub) in
|
||||
let sign = RsaSignature.sign ~key:priv in
|
||||
let master_sig = None in
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue