golang-ed25519encryptionopenssh

command module
v0.0.0-...-b42cdc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: LGPL-2.1 Imports: 9 Imported by: 0

README

Example code for libp2p key format conversion

I made this example to demonstrate how to store Ed25519 private keys as encrypted keys in OpenSSH format. Also derives the respective pubkey and libp2p nodeID string. It took me way too long to make this example, it still is unclear to me whether libp2p/crypto keys are not compatible with crypto/ssh functions or if that is currently bugged or maybe it is possible but not just documented? Using crypto/ed25519 instead of libp2p/crypto to generate the keys seems to be the secret sauce.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL