LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

edky

Convert Ed25519 public keys between encodings

TLDR

List supported public key encoding formats
$ edky list
copy
Convert an Iroh key to a libp2p/multibase key
$ edky convert -f iroh -t libp2p [key]
copy
Convert a libp2p key back to Iroh (base32z)
$ edky convert -f libp2p -t iroh [key]
copy
Convert a NEAR key to raw hex
$ edky convert -f near -t hex [key]
copy
Convert hex to a NEAR-style key
$ edky convert -f hex -t near [key]
copy
Parse a key in a given encoding
$ edky parse -f openssh [key]
copy

SYNOPSIS

edky [options] [command] [args]

DESCRIPTION

edky (pronounced "ed-key") converts Ed25519 public keys between common encoding formats used across cryptography and peer-to-peer stacks. It is available as a command-line tool and as libraries for Rust, TypeScript/JavaScript, Dart, Python, and Ruby.Supported encodings for --from / --to include hex / base16, base32z, base58, base64, base64url, multibase, and ecosystem aliases such as iroh, libp2p, ipfs, near, openssh, and asimov. Subcommands are list (enumerate formats), convert (re-encode keys), and parse (validate and inspect keys).Install the CLI via Cargo with the cli feature (cargo install edky --locked --features=cli) or cargo binstall edky. Default input and output encoding for convert/parse is hex when not specified.

PARAMETERS

list

Print supported public key encoding format names.
convert [-f FROM] [-t TO] [INPUTS…]
Convert each input key from encoding FROM to encoding TO. Defaults: hexhex.
parse [-f FROM] [INPUTS…]
Parse keys in encoding FROM (default hex).
-f, --from FORMAT
Input encoding format.
-t, --to FORMAT
Output encoding format (convert only).
-d, --debug
Enable debugging output.
-v, --verbose
Increase verbosity (repeatable).
-V, --version
Print version information.
--license
Show license information.
--color auto|always|never
Control color output (default auto).
-h, --help
Print help.

CAVEATS

Operates on public keys only; it does not convert private keys or sign data. Encoding aliases may map to the same wire format (for example iroh and base32z, or libp2p / ipfs / multibase for multibase-encoded DID keys). Invalid input length or alphabet for the chosen format causes an error.

HISTORY

edky is public-domain (Unlicense) software by Arto Bendiken, aimed at interop among ASIMOV, IPFS, Iroh, libp2p, NEAR, OpenSSH, and related Ed25519 encodings.

SEE ALSO

RESOURCES

Copied to clipboard
Kai