Documentation ¶
Index ¶
Constants ¶
View Source
const PrivPemType = "LIBP2P PRIVATE KEY"
PrivPemType is the expected header type on private keys.
View Source
const PubPemType = "LIBP2P PUBLIC KEY"
PubPemType is the expected header type on public keys.
Variables ¶
This section is empty.
Functions ¶
func MarshalPrivKeyPem ¶
MarshalPrivKeyPem marshals a private key to pem.
func MarshalPubKeyPem ¶
MarshalPubKeyPem marshals a public key to pem.
func ParsePrivKeyPem ¶
ParsePrivKeyPem parses a private key in pem format. If none is found returns nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.