Blockchains

Blockchains

Eight drivers, one class shape. Pick a chain to see its address rules and the traps.

Every driver below answers the same calls: generateWallet, getAddress, validateAddress, signMessage, deriveHDWallet. What changes is the hashing, the encoding, and which arguments actually matter. The pages are short on purpose, the interesting part of each one is the gotcha list.

Bitcoin

secp256k1. Five address formats, testnet, and a taproot that does the real BIP341 tweak.

Ethereum

secp256k1. EIP-55 checksummed hex and the personal_sign preamble.

Base

Same driver as Ethereum under a different name. Same key, same address.

Solana

ed25519. The address is the public key in base58, no hashing at all.

Aptos

ed25519. SHA3-256 over the key and a scheme byte, 0x hex out.

TRON

secp256k1. Ethereum's 20 bytes wrapped in base58check, so it starts with T.

Sui

ed25519 or secp256k1 on one chain. Blake2b over a flag byte and the key.

Cardano

ed25519. bech32 base, enterprise, and stake addresses. No mnemonic derivation, on purpose.

@agntn/keys·MIT license· Keys never leave the browser.