Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPair ¶
type KeyPair struct {
Public ed25519.PublicKey
Private ed25519.PrivateKey
}
func GenerateKeyPair ¶
GenerateKeyPair creates a new random Ed25519 identity key.
func LoadPrivateKeyFromPEM ¶
LoadPrivateKeyFromPEM parses a PEM block back into a KeyPair. Derives the public key from the private key automatically.
func (*KeyPair) PrivateToPEM ¶
ToPEM encodes the private key to a PEM block.
func (*KeyPair) PublicToPEM ¶
PublicToPEM encodes the public key to PEM.
Click to show internal directories.
Click to hide internal directories.