https://github.com/artob/edky
Convert Ed25519 public keys between various encoding formats.
https://github.com/artob/edky
cryptography cryptography-tools curve25519 ed25119
Last synced: 17 days ago
JSON representation
Convert Ed25519 public keys between various encoding formats.
- Host: GitHub
- URL: https://github.com/artob/edky
- Owner: artob
- License: unlicense
- Created: 2026-07-11T08:24:10.000Z (28 days ago)
- Default Branch: master
- Last Pushed: 2026-07-21T16:52:42.000Z (17 days ago)
- Last Synced: 2026-07-21T18:22:12.192Z (17 days ago)
- Topics: cryptography, cryptography-tools, curve25519, ed25119
- Language: Rust
- Homepage: https://edky.dev
- Size: 831 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Citation: CITATION.cff
- Codeowners: .github/codeowners
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-iroh - Edky - Convert Ed25519 public keys between various encoding formats (iroh, libp2p, IPFS, OpenSSH, etc). (DevTools)
- awesome-rust-tools - edky - A command-line utility to convert Ed25519 public keys between various encoding formats (Base58, Base64, IPFS, iroh, libp2p, OpenSSH, etc). (Dev-Utilities)
- awesome-rust-with-stars - artob/edky - line utility to convert Ed25519 public keys between various encoding formats (Base58, Base64, IPFS, iroh, libp2p, OpenSSH, etc). | 2026-07-30 | (Applications / Utilities)
- awesome-rust - artob/edky - A command-line utility to convert Ed25519 public keys between various encoding formats (Base58, Base64, IPFS, iroh, libp2p, OpenSSH, etc). [](https://github.com/artob/edky/blob/master/.github/workflows/rust.yaml) (Applications / Utilities)
README
# Edky
[](https://unlicense.org)
[](https://crates.io/crates/edky)
[](https://npmjs.com/package/edky.js)
[](https://pub.dev/packages/edky)
[](https://pypi.org/project/edky)
[](https://rubygems.org/gems/edky)
**Edky (pronounced *ed-key*) converts [Ed25519] public keys between various encoding formats.**
[[Features](#-features)] |
[[Prerequisites](#%EF%B8%8F-prerequisites)] |
[[Installation](#%EF%B8%8F-installation)] |
[[Examples](#-examples)] |
[[Reference](#-reference)] |
[[Development](#%E2%80%8D-development)]

## β¨ Features
- Available both as the command-line tool [`edky`] and a polyglot library.
- Supports the Base16, Base32z, Base58, Base64, and Multibase encodings.
- Provides interop between ASIMOV, IPFS, Iroh, libp2p, NEAR, OpenSSH, etc.
- Polyglot software available for Dart, Python, Ruby, Rust, and TypeScript.
- Cuts red tape: 100% free and unencumbered public domain software.
## β¬οΈ Installation
### Installation of the CLI
#### Installation via [Cargo Binstall]
```bash
cargo binstall -y edky
```

#### Installation via [Cargo]
```bash
cargo install edky --locked --features=cli
```
### Installation of the Library
Installation for Rust from Crates.io
#### Installation from [Crates.io]
```bash
cargo add edky
```
Installation for JavaScript/TypeScript from NPM
#### Installation from [NPM]
```bash
npm install edky.js
bun add edky.js
pnpm add edky.js
yarn add edky.js
```
Installation for Dart from Pub.dev
#### Installation from [Pub.dev]
```bash
dart pub add edky
flutter pub add edky
```
Installation for Python from PyPI
#### Installation from [PyPI]
```bash
pip install -U edky
uv add edky
poetry add edky
pdm add edky
```
Installation for Ruby from RubyGems
#### Installation from [RubyGems]
```bash
gem install edky
bundle add edky
```
## π Examples
### Converting Ed25119 Public Keys via the CLI
```shellsession
$ edky convert -f iroh -t libp2p 47pjoycnsrfmxikm95jh13y88e8qnhzu5kungjpxyepgt7a8krpy
z6MktwupdmLXVVqTzCw4i46r4uGyosGXRnR3XjN4Zq7oMMsw
$ edky convert -f libp2p -t iroh z6MktwupdmLXVVqTzCw4i46r4uGyosGXRnR3XjN4Zq7oMMsw
47pjoycnsrfmxikm95jh13y88e8qnhzu5kungjpxyepgt7a8krpy
$ edky convert -f near -t hex ed25519:FVen3X669xLzsi6N2V91DoiyzHzg1uAgqiT8jZ9nS96Z
d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a
$ edky convert -f hex -t near d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a
ed25519:FVen3X669xLzsi6N2V91DoiyzHzg1uAgqiT8jZ9nS96Z
```
## π Reference
### Command-Line Interface
```shellsession
$ edky
Edky converts Ed25519 public keys between various encoding formats
Usage: edky [OPTIONS] [COMMAND]
Commands:
list List the supported public key encoding formats
convert Convert Ed25519 public keys between various encoding formats
parse Parse Ed25519 public keys in various encoding formats
help Print this message or the help of the given subcommand(s)
Options:
--color Set the color output mode [default: auto] [possible values: auto, always, never]
-d, --debug Enable debugging output
--license Show license information
-v, --verbose... Enable verbose output (may be repeated for more verbosity)
-V, --version Print version information
-h, --help Print help (see more with '--help')
```
#### `edky list`
```shellsession
$ edky list --help
List the supported public key encoding formats
Usage: edky list [OPTIONS]
Options:
--color Set the color output mode [default: auto] [possible values: auto, always, never]
-d, --debug Enable debugging output
-v, --verbose... Enable verbose output (may be repeated for more verbosity)
-h, --help Print help
```
#### `edky convert`
```shellsession
$ edky convert --help
Convert Ed25519 public keys between various encoding formats
Usage: edky convert [OPTIONS] [INPUTS]...
Arguments:
[INPUTS]... The input strings to convert
Options:
--color Set the color output mode [default: auto] [possible values: auto, always, never]
-f, --from The input encoding format [default: hex]
-d, --debug Enable debugging output
-t, --to The output encoding format [default: hex]
-v, --verbose... Enable verbose output (may be repeated for more verbosity)
-h, --help Print help
```
#### `edky parse`
```shellsession
$ edky parse --help
Parse Ed25519 public keys in various encoding formats
Usage: edky parse [OPTIONS] [INPUTS]...
Arguments:
[INPUTS]... The input strings to parse
Options:
--color Set the color output mode [default: auto] [possible values: auto, always, never]
-f, --from The input encoding format [default: hex]
-d, --debug Enable debugging output
-v, --verbose... Enable verbose output (may be repeated for more verbosity)
-h, --help Print help
```
#### Encodings
| For `-f`, `-t` | Sample Public Key |
| ---------------- | ----------------- |
| `asimov` | βΆYFVen3X669xLzsi6N2V91DoiyzHzg1uAgqiT8jZ9nS96Z |
| `base16` | d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a |
| `base32z` | 47pjoycnsrfmxikm95jh13y88e8qnhzu5kungjpxyepgt7a8krpy |
| `base58` | FVen3X669xLzsi6N2V91DoiyzHzg1uAgqiT8jZ9nS96Z |
| `base64` | 11qYAYKxCrfVS/7TyWQHOg7hcvPapiMlrwIaaPcHURo= |
| `base64url` | 11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo |
| `hex` | d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a |
| `ipfs` | z6MktwupdmLXVVqTzCw4i46r4uGyosGXRnR3XjN4Zq7oMMsw |
| `iroh` | 47pjoycnsrfmxikm95jh13y88e8qnhzu5kungjpxyepgt7a8krpy |
| `libp2p` | z6MktwupdmLXVVqTzCw4i46r4uGyosGXRnR3XjN4Zq7oMMsw |
| `multibase` | z6MktwupdmLXVVqTzCw4i46r4uGyosGXRnR3XjN4Zq7oMMsw |
| `near` | ed25519:FVen3X669xLzsi6N2V91DoiyzHzg1uAgqiT8jZ9nS96Z |
| `openssh` | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINdamAGCsQq31Uv+08lkBzoO4XLz2qYjJa8CGmj3B1Ea |
## π¨βπ» Development
```bash
git clone https://github.com/artob/edky.git
```
---
[](https://x.com/intent/post?url=https%3A%2F%2Fgithub.com%2Fartob%2Fedky&text=Edky)
[](https://reddit.com/submit?url=https%3A%2F%2Fgithub.com%2Fartob%2Fedky&title=Edky)
[](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fgithub.com%2Fartob%2Fedky&t=Edky)
[](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fgithub.com%2Fartob%2Fedky)
[](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fartob%2Fedky)
[`edky`]: https://github.com/artob/edky#command-line-interface
[Crates.io]: https://crates.io/crates/edky
[NPM]: https://npmjs.com/package/edky.js
[Pub.dev]: https://pub.dev/packages/edky
[PyPI]: https://pypi.org/project/edky
[RubyGems]: https://rubygems.org/gems/edky
[Cargo]: https://rustup.rs
[Cargo Binstall]: https://crates.io/crates/cargo-binstall
[Ed25519]: https://en.wikipedia.org/wiki/Ed25519