Keypair_read_write.Make
module Env : sig ... end
module Keypair = Signature_lib.Keypair
type t = Keypair.t
val write_exn :
Keypair.t ->
privkey_path:string ->
password:Secret_file.password ->
unit Async.Deferred.t
Writes a keypair to privkey_path
and privkey_path ^ ".pub"
using Secret_file
val read :
privkey_path:string ->
password:Secret_file.password ->
( Keypair.t, Privkey_error.t ) Async.Deferred.Result.t
Reads a private key from privkey_path
using Secret_file
val read_exn :
privkey_path:string ->
password:Secret_file.password ->
Keypair.t Async.Deferred.t
Reads a private key from privkey_path
using Secret_file
, throws on failure
val read_exn' : string -> Keypair.t Async.Deferred.t