Skip to content

ChiefWoods/bs58ify

Repository files navigation

bs58ify

A command-line utility for converting between Base58 strings and JSON byte arrays.

Use the installed binary

Install the published package globally:

bun add -g bs58ify

The package exposes the bs58ify binary. Run it with no arguments, or pass --help, to view the available subcommands:

bs58ify

You can also invoke it without a global installation:

bunx bs58ify

Commands

Encode a JSON byte array as Base58:

bs58ify encode '[174,143,195,32,60,129,71,57,57,70,236,218,24,191,188,247,22,72,219,221,150,251,146,87,152,248,120,118,17,160,156,81,219,105,209,118,42,146,222,75,53,28,45,84,36,183,165,110,127,190,6,250,172,217,97,213,2,90,103,129,47,1,178,175]' base58.txt

Decode Base58 as a JSON byte array:

bs58ify decode 4VRWeP2rwPtCTVQg1LLYfwwxSbVW98wAmDK9HJXtmJZiA5FkXAKg6fgqSLMUzFSActLCfFJLXqt5RKUgbFF2d8Hc uint8array.json

Both commands require an output filepath and write the converted value to that file.

About

A command-line utility for converting between Base58 strings and JSON byte arrays.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors