BR Academy
0%
Holding and Using XRP Safely·Lesson 16 of 35·10 min

Keys, Addresses, and Security

The concept

Underneath every wallet choice from the previous lesson is the same cryptography: a secret (also called a seed), a key pair derived from it, and a public XRPL address others use to send you value. Get the relationship between these three wrong, and the mistake is often unrecoverable.

Your seed is a piece of secret data that deterministically generates your key pair — a private key (used to sign transactions, proving you authorized them) and a public key (used to derive your address). Your address is the public identifier others use to send you XRP or issued currencies; it's safe to share freely, the way you'd share a bank account number. Your seed is the opposite: it must never be shared, because anyone who has it can generate your private key and sign transactions as you — permanently and irreversibly. There is no password-reset mechanism, no customer support line, no company that can restore access if a seed is lost. Lose it, and whatever it controls is gone.

The XRP Ledger adds two features without a direct equivalent in many account-based systems, and both matter for everyday safety:

Destination tags. Many custodial services — most commonly exchanges — use a single shared XRPL address for all their customers' deposits, and distinguish individual customers using a destination tag: a numeric identifier included with the payment that tells the receiving service which internal sub-account the funds belong to. If you send XRP to an exchange address and omit a required destination tag, or enter the wrong one, the exchange may not be able to credit your account — and because the underlying transaction itself is valid and final (Lesson 2.4), there's no ledger-level mechanism to reverse it. This is a common, costly, and entirely preventable mistake.

Regular keys. By default, an account's original key pair is also its signing key, forever. The optional regular key mechanism lets an account designate a different key to sign transactions going forward, without changing the account's address. This is useful for key rotation (if you suspect a key has been exposed, you can switch signing authority without needing everyone who has your address to update anything) — but it's an optional, advanced feature most newcomers won't configure on day one.

Worked example

Picture a deposit to an exchange address that requires a destination tag:

  1. The exchange gives you its shared deposit address (e.g., rExchangeHotWallet...) and a unique destination tag assigned to your account (e.g., 4821093).
  2. You construct a Payment transaction specifying that address as the destination and include the destination tag 4821093 as a field in the transaction.
  3. The transaction settles normally — it's a completely valid, final XRPL payment to the shared address. The exchange's internal system then reads the destination tag and credits the correct customer's internal balance.

Now the failure case: if you send the same payment but omit the destination tag, or enter a different customer's tag by mistake, the transaction is still perfectly valid on the ledger — it completed, it's final, the exchange received the XRP. But the exchange's internal system may have no way to determine which customer should be credited (or may credit the wrong one), and because the underlying ledger transaction cannot be reversed, recovering the funds typically requires a manual support process with the exchange, if it's even possible. This differs completely from an account-based system with no equivalent concept, where a single address uniquely identifies the recipient with nothing else required.

Exercise

Apply this checklist to the hypothetical scenario below, and catch the one deliberately-inserted error:

Checklist: (1) Seed is stored offline and never entered into a website or shared with anyone. (2) Destination tag is verified against the exact value the receiving service provided, not assumed or guessed. (3) Regular key status is understood — if a regular key is set, the original key may no longer be the active signer.

Scenario: "I'm sending 500 XRP to my exchange account. I copied the deposit address from the exchange's page, and used the destination tag from a screenshot a friend sent me of their own deposit instructions, since I assumed all customers used the same tag."

The error: Destination tags are typically unique per customer — using a friend's tag, even on the correct shared address, risks crediting the wrong account or failing to credit any account at all. The checklist item being violated is #2: the tag was assumed from someone else's instructions rather than verified against the exact value this sender's own account was issued.

Recap

  • A seed generates your key pair; your address is safe to share, your seed never is — there is no recovery mechanism if it's lost or exposed.
  • Destination tags route payments to the correct sub-account within a shared custodial address (most often an exchange); omitting or mistyping one risks an unrecoverable, final transaction with no way to credit the right account.
  • The optional regular key mechanism lets an account rotate its signing key without changing its address — an advanced feature, not a day-one requirement.

Resources

  • Cryptographic keys reference, XRPL.org — https://xrpl.org/docs/concepts/accounts/cryptographic-keys
  • Source and destination tags reference — https://xrpl.org/docs/concepts/payment-types/source-and-destination-tags
  • SetRegularKey transaction reference — https://xrpl.org/docs/references/protocol/transactions/types/setregularkey