# Keys & addresses

> How Pearl turns a random number into a private key, a public key, a Taproot tweak and a 63-character prl1 address, and how 12 words back up every key.

Source: https://pearlcodex.com/technical/keys/ · Last updated: 2026-10-25 · Checked against Pearl's source code at v1.5.5

Owning PRL means knowing a secret number. This group follows that number all the way to the address you hand out, and back to the 12 words that let you rebuild it.

Almost all of it is borrowed from Bitcoin, unchanged: the same curve, the same signatures, the same Taproot tweak and the same checksum algorithm. What Pearl changes is the packaging: one address family, new prefixes, a new derivation path and a few wallet habits worth knowing before you trust a backup.

## Try it

Pick any private key and watch it become a public key, a tweaked key and a prl1 address, one step at a time.

_Interactive: Key forge. Try it on the page: <https://pearlcodex.com/technical/keys/>_

## What’s the chain from secret to address?

Five steps, each one-way. You can always go down the chain, never back up.

_From a secret number to an address. Each arrow is easy to compute and impossible to reverse._

Here is a real Pearl address, taken from a payment in block 130,825:

`prl1pvt5a5d5z42egswfv7uscht7rv2rj3z4m8n3qp3w35592ydq88v4seuhn70`

Every mainnet address is exactly 63 characters, because every Pearl address carries exactly 32 bytes.

## What’s in this group?

Read these in order the first time. Each takes five to ten minutes.

| Page                                                                        | What you’ll learn                                                                            |
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [Private key](https://pearlcodex.com/technical/keys/private-key/)           | The range of valid keys, how wallets pick them, and the WIF format (identical to Bitcoin’s). |
| [Public key](https://pearlcodex.com/technical/keys/public-key/)             | Points on secp256k1; compressed and 32-byte x-only keys; what a Schnorr signature checks.    |
| [Taproot tweak](https://pearlcodex.com/technical/keys/taproot-tweak/)       | Why the key in your address isn’t quite your public key, worked through with real numbers.   |
| [Address](https://pearlcodex.com/technical/keys/address/)                   | The five parts of a prl1 address, the prefixes for each network, and the 63-character rule.  |
| [Bech32m](https://pearlcodex.com/technical/keys/bech32m/)                   | How the 6-character checksum is computed and why it catches typos.                           |
| [Mnemonic and seed](https://pearlcodex.com/technical/keys/mnemonic-seed/)   | How 128 random bits become 12 words and then a 64-byte seed. No passphrase on Pearl.         |
| [Extended keys](https://pearlcodex.com/technical/keys/extended-keys/)       | zprv and zpub: a key plus a chain code, and why Pearl reuses Bitcoin’s “z” prefixes.         |
| [Derivation paths](https://pearlcodex.com/technical/keys/derivation-paths/) | `m/86'/808276'/0'/0/i`, where 808276 comes from, and Oyster’s 0.8% quirk.                    |

## Where does Pearl differ from Bitcoin?

| Topic                | Bitcoin                       | Pearl                                                            | Explained in                                                         |
| -------------------- | ----------------------------- | ---------------------------------------------------------------- | -------------------------------------------------------------------- |
| Curve and signatures | secp256k1; ECDSA and Schnorr  | secp256k1; **Schnorr only** in transactions (plus optional XMSS) | [Read more](https://pearlcodex.com/technical/keys/public-key/)       |
| Address types        | 1…, 3…, bc1q…, bc1p…          | **prl1p…** (Taproot) and **prl1z…** (P2MR) only                  | [Read more](https://pearlcodex.com/technical/keys/address/)          |
| Address length       | bc1p: 62 characters           | **63** on mainnet, 64 on test networks                           | [Read more](https://pearlcodex.com/technical/keys/address/)          |
| Checksum             | bech32 (v0) and bech32m (v1+) | **bech32m only**                                                 | [Read more](https://pearlcodex.com/technical/keys/bech32m/)          |
| Wallet path          | m/86'/0'/0'/0/i for Taproot   | **m/86'/808276'/0'/0/i**                                         | [Read more](https://pearlcodex.com/technical/keys/derivation-paths/) |
| Extended keys        | xprv / xpub for Taproot       | **zprv / zpub** (Bitcoin uses these bytes for bc1q wallets)      | [Read more](https://pearlcodex.com/technical/keys/extended-keys/)    |
| Backup words         | 12 or 24, optional passphrase | **12 words**, no passphrase                                      | [Read more](https://pearlcodex.com/technical/keys/mnemonic-seed/)    |

> **Pearl vs Bitcoin: Same math, new labels**
>
> For any private key, the 52 characters in the middle of a Pearl address are identical to the ones in the Bitcoin bc1p address of the same key. Only the prefix and the checksum change. The Taproot tweak, the Schnorr signatures and the BIP-32 tree math are unchanged; even the master-key constant is still the string “Bitcoin seed”.

## What should you never share?

- **Share freely:** your addresses. That’s what they are for. Wallets hand out a fresh one each time for privacy.
- **Share with care:** an extended public key (zpub). It reveals every address in the account, so it costs privacy, not coins.
- **Never share:** a private key, a WIF string, a zprv, or the 12 words. Each one is enough to take your coins. No Pearl developer, support person or website will ever need them.

> **Warning: Example keys on this site are public**
>
> The keys used as examples in this group (private key 1, the “abandon … about” test phrase and others) are famous precisely because everyone knows them. Coins sent to their addresses can be taken by anyone. Never use them.

## In this group

1. [Private key](https://pearlcodex.com/technical/keys/private-key/): A very large random number
2. [Public key](https://pearlcodex.com/technical/keys/public-key/): A point on the curve that anyone can check signatures against
3. [Taproot tweak](https://pearlcodex.com/technical/keys/taproot-tweak/): Why the key in your address isn’t quite your public key
4. [Address](https://pearlcodex.com/technical/keys/address/): A locking script, written for humans
5. [Bech32m](https://pearlcodex.com/technical/keys/bech32m/): The checksum that catches your typos
6. [Mnemonic and seed](https://pearlcodex.com/technical/keys/mnemonic-seed/): Twelve words that rebuild every key
7. [Extended keys](https://pearlcodex.com/technical/keys/extended-keys/): A key plus a chain code, which together grow a whole tree
8. [Derivation paths](https://pearlcodex.com/technical/keys/derivation-paths/): The street address of every key in your wallet

## In short

- A private key is a random number between 1 and about 1.16 × 10⁷⁷. Everything else in this group is computed from it.
- The public key is the private key times a fixed point G on the secp256k1 curve. Pearl uses the 32-byte x-only form, as Taproot does.
- Wallets tweak the public key before putting it in an address, so the address can commit to backup scripts (or provably to none).
- A Pearl address is bech32m text: prl, 1, a version letter (p or z), 52 characters of key or script root, and a 6-character checksum. 63 characters on mainnet.
- Wallets don’t store keys one by one: 12 words make a seed, the seed makes a tree of keys, and the path m/86'/808276'/0'/0/i picks each address.

## Read the code

- [Private keys are 32-byte numbers below the curve order](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/btcec/privkey.go#L18-L37) `node/btcec/privkey.go:18-37`
- [The Taproot tweak](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/txscript/taproot.go#L276-L331) `node/txscript/taproot.go:276-331`
- [Encoding addresses with bech32m](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/btcutil/address.go#L17-L50) `node/btcutil/address.go:17-50`
- [Mainnet prefixes: prl, WIF 0x80, zprv/zpub, coin type](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L436-L448) `node/chaincfg/params.go:436-448`
- [The wallet's BIP-86 key scope](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/wallet/waddrmgr/scoped_manager.go#L155-L205) `wallet/waddrmgr/scoped_manager.go:155-205`

## Sources

### Pearl source

- [Pearl source code at v1.5.5](https://github.com/pearl-research-labs/pearl/tree/v1.5.5)

### Bitcoin standards

- [BIP-340: Schnorr signatures for secp256k1](https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki)
- [BIP-341: Taproot](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki)
- [BIP-350: Bech32m](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki)
- [BIP-86: Key derivation for single-key Taproot outputs](https://github.com/bitcoin/bips/blob/master/bip-0086.mediawiki)

### Other

- [learnmeabitcoin: Technical (the Bitcoin version of this group)](https://learnmeabitcoin.com/technical/)
