rename crockford
This commit is contained in:
parent
34b979a9bc
commit
10df5181a0
14 changed files with 80 additions and 70 deletions
|
|
@ -202,7 +202,9 @@ let setup ~output ~output_pubkey =
|
|||
@@
|
||||
let priv, pub = Mirage_crypto_ec.Ed25519.generate () in
|
||||
let priv_data = Mirage_crypto_ec.Ed25519.priv_to_octets priv in
|
||||
let pub_data = Mirage_crypto_ec.Ed25519.pub_to_octets pub |> B32.encode in
|
||||
let pub_data =
|
||||
Mirage_crypto_ec.Ed25519.pub_to_octets pub |> Crockford.encode
|
||||
in
|
||||
let* () = write_file output priv_data in
|
||||
let* () = write_file output_pubkey pub_data in
|
||||
Ok ()
|
||||
|
|
@ -223,7 +225,7 @@ let revoke_denom ~output ~master_key ~h_denom =
|
|||
@@
|
||||
let* key = read_master_key_file master_key in
|
||||
let* h_denom_pub =
|
||||
DenominationHash.of_b32 h_denom |> Result.map_error (fun e -> `Msg e)
|
||||
DenominationHash.of_crockford h_denom |> Result.map_error (fun e -> `Msg e)
|
||||
in
|
||||
let denom_revoke =
|
||||
let master_sig =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue