Module Mina_net2.Keypair

module Stable : sig ... end
val to_string : t -> string

Formats this keypair to a comma-separated list of public key, secret key, and peer_id.

val of_string : string -> t Core.Or_error.t

Undo to_string t.

Only fails if the string has the wrong format, not if the embedded keypair data is corrupt.

val to_peer_id : t -> Network_peer.Peer.Id.t
val secret : t -> string