This commit is contained in:
parent
f7cb91615d
commit
c5a2562a7b
3 changed files with 7 additions and 1 deletions
1
keys.json
Normal file
1
keys.json
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -113,6 +113,6 @@ let bin =
|
|||
let open Bin in
|
||||
record make_exn
|
||||
|+ field beint64 (fun t -> t.value)
|
||||
|+ field beint32 (fun t -> t.fraction)
|
||||
|+ field beint32 (fun t -> Int32.mul t.fraction 1_000_000_l)
|
||||
|+ field (bytes currency_len) (fun t -> pad_currency_string t.currency)
|
||||
|> sealr
|
||||
|
|
|
|||
|
|
@ -75,6 +75,11 @@ let keys content =
|
|||
let* () =
|
||||
denom_l
|
||||
|> list_iter (fun dn ->
|
||||
let open Denomination in
|
||||
(*let to_int64 ts = ts |> Timestamp.to_s |> Option.get in*)
|
||||
Fmt.pr "rsa_pub: %s@." (Crypto.RsaPublicKey.to_b32 dn.pub);
|
||||
Fmt.pr "master_sig: %s@." (B32.encode @@ Obj.magic dn.master_sig);
|
||||
(* amount bin fraction bad? *)
|
||||
let* () =
|
||||
Denomination.verify_denomination_key_validity ~key:v.master_public_key
|
||||
dn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue