solana wallet signature verification without a heavy SDK
crypto2026-05-25
You don't need @solana/web3.js (which is enormous) to verify ed25519 signatures server-side. tweetnacl provides nacl.sign.detached.verify which takes three Uint8Arrays: message bytes, signature bytes, and the 32-byte public key. bs58 decodes the base58 Solana address to the key bytes. Total overhead: ~6kb for tweetnacl + ~3kb for bs58.