Recommended: JavaScript SDK for React Native
While this SDK is still supported, we recommend using newer JavaScript SDK, which is optimized for React Native, but also comes with a host of other benefits.
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 a Transaction
Build an XRP Payment transaction, sign with SHA-512/256, DER-encode the signature, and submit:serializePayment, sigToDER, xrpAddressToAccountId, xrpRpc) see the JavaScript XRP guide. The only difference in React Native is the signing call.