Bytes to Base58
Encodes raw byte array into Base58 string (Bitcoin / Flickr)
Overview
Encodes a raw byte array (Uint8Array) into a Base58 string using either the Bitcoin/IPFS alphabet (123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz) or the Flickr short-URL alphabet. Base58 omits visually ambiguous characters (0, O, I, l) and punctuation (+, /).
Leading zero bytes (0x00) in the input array are preserved one-for-one as the first character of the selected alphabet (1 in Bitcoin alphabet).
When to Use
- Encoding public key hashes, Bitcoin/Solana addresses, CIDs, or compact human-copyable identifiers.
- Sharing binary keys or tokens over channels where punctuation breaks double-click word selection.
Parameter Configuration
| Parameter (ID) | Type & Default | Visibility Condition | Description & Options |
|---|---|---|---|
Alphabetalphabet |
selectDefault: btc |
Always visible | Selects the Base58 character table: bitcoin (used by Bitcoin, Solana, and IPFS) or flickr (lowercase letters precede uppercase).
|
Port I/O Specification
See Ports & Connections for general wiring rules, data type colors, and dynamic port creation.
Input Ports
Port Nature: Fixed Input Ports (1 total).
| Port Name | Port ID | Data Type | Required | Visibility Condition | Description |
|---|---|---|---|---|---|
Bytes In |
bytes |
Bytes |
Required | Always visible | Raw byte array (Uint8Array) to encode. |
Output Ports
Port Nature: Fixed Output Ports (1 total).
| Port Name | Port ID | Data Type | Visibility Condition | Description |
|---|---|---|---|---|
Base58 Out |
string |
String |
Always visible | Base58-encoded string. |
Error Cases
This node has no runtime failure cases (errorProfile: none) and always succeeds for any valid typed input.
Examples
Encoding an Ed25519 Public Key in Bitcoin/Solana Base58 Format
Convert a 32-byte Ed25519 public key into a Base58 address string.
- Connect the
Public Keyoutput of Ed25519 KeyGen to Bytes to Base58. - Leave Alphabet set to
Bitcoin / IPFS.