ssh-to-solana

Crates.iossh-to-solana
lib.rsssh-to-solana
version0.1.1
created_at2025-05-14 06:26:47.637553+00
updated_at2025-05-14 06:26:47.637553+00
descriptionConvert GPG-exported ED25519 SSH key to Solana address
homepage
repositoryhttps://github.com/stars-labs/crypto-rust-tools
max_upload_size
id1672953
size12,752
Freeman.Xiong (xiongchenyu6)

documentation

README

SSH to Solana Address Converter

A simple CLI tool that converts GPG-exported ED25519 SSH keys to Solana addresses.

Installation

cargo install --path .

Usage

You can provide the SSH key directly as an argument:

ssh-to-solana "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICKoK0n5DHVMeDCw3XVZUYxhgdQIYJADIyaSF7J8Rz1E openpgp:0x98DF58F5"

Or you can pipe the output from GPG to the tool:

gpg --export-ssh-key 4EDE451FC10722D0C6662C6FB99B8189C7C153F6 | ssh-to-solana

How It Works

  1. The tool extracts the base64-encoded data from the SSH key
  2. Decodes the data to get the binary representation
  3. Extracts the 32-byte ED25519 public key
  4. Base58-encodes the public key to produce a Solana address

License

MIT

Commit count: 46

cargo fmt