Skip to main content

Overview

XRP uses the secp256k1 elliptic curve — the same as Ethereum. You recover the compressed public key from the EVM wallet, then compute RIPEMD-160(SHA-256(pubkey)) and encode with XRP’s custom base58 alphabet. Transactions use XRP’s binary serialization format and require DER-encoded signatures with low-S normalization.

Dependencies

Derive Address

Recover the secp256k1 compressed public key, compute the account ID, and encode with XRP’s base58 alphabet:

Sign a Message

Sign using a SHA-256 digest of the XRP message prefix via the EVM WaaS provider:

Verify a Signature

Recover the public key from the signature and compare to the stored key:

Check Balance

Query the XRP balance via JSON-RPC:

Send a Transfer

Build a Payment transaction, serialize using XRP binary format, sign with DER encoding, and submit.

DER Signature Encoding

XRP requires DER-encoded signatures with low-S normalization:

XRP Binary Serialization

Full Transfer Implementation

Last modified on March 28, 2026