solana-base58-json-converter

Crates.iosolana-base58-json-converter
lib.rssolana-base58-json-converter
version0.1.0
sourcesrc
created_at2022-08-03 03:41:46.351293
updated_at2022-08-03 03:41:46.351293
descriptionA CLI tool for converting Solana private key from/to base58 to/from json
homepage
repositoryhttps://github.com/dovahcrow/solana-base58-json-converter
max_upload_size
id637732
size46,647
owners (github:mcx-lang:owners)

documentation

README

Solana Base58 <-> JSON Converter

A small CLI tool to convert Solana keys from/to Base58 format to/from JSON format.

Installation

cargo install solana-base58-json-converter

Usage

Convert JSON key to Base58

$ sbjc --json "[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]"
1111111111111111111111111111111111111111111111111111111111111111

Or

$ cat key.json
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

$ sbjc --json key.json
1111111111111111111111111111111111111111111111111111111111111111

Convert Base58 key to JSON

$ sbjc --base58 1111111111111111111111111111111111111111111111111111111111111111
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

or

$ sbjc --base58 1111111111111111111111111111111111111111111111111111111111111111 > key.json
$ cat key.json
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
Commit count: 1

cargo fmt