# Keys and addresses

> Your private key is a huge random number. From it come a public key and a prl1 address, whose built-in checksum catches typos before coins move.

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

Owning PRL doesn’t mean having an account somewhere. It means knowing a secret number.

This page follows that number as your wallet turns it into a public key, then into an address you can hand to anyone.

## What is a private key?

Everything starts with a random number. Your wallet picks one between 1 and roughly $1.16 \times 10^{77}$, a number up to 78 digits long. That number is your [private key](https://pearlcodex.com/glossary/#private-key).

There are so many possible keys that guessing someone else’s is hopeless. The danger isn’t guessing; it’s a key that wasn’t really random, or one that leaks. So never invent your own key from a birthday or a favorite phrase. Let the wallet’s random number generator do it.

Whoever knows a private key can spend the coins it controls. That’s the whole security model, in one sentence.

## What is a public key?

From the private key, your wallet computes a [public key](https://pearlcodex.com/glossary/#public-key), using elliptic-curve math on a curve called [secp256k1](https://pearlcodex.com/glossary/#secp256k1). It’s the same curve Bitcoin uses.

Think of mixing paint. Yellow and blue make green in seconds, but no one can take green paint and separate it back into yellow and blue. Going from private key to public key is quick and easy; going back is believed to be impossible with today’s computers.

That one-way street is what lets you show your public key to the world while your private key stays secret.

## How does a key prove ownership?

With a [signature](https://pearlcodex.com/glossary/#signature). When you spend, your wallet combines your private key with the exact transaction and produces a 64-byte [Schnorr signature](https://pearlcodex.com/glossary/#schnorr-signature).

Anyone can check it against your public key. Nobody can make one without the private key, and a signature for one transaction is useless for any other.

## What is an address?

An [address](https://pearlcodex.com/glossary/#address) is what you give people so they can pay you. A Pearl address looks like this:

`prl1pmfr3p9j00pfxjh0zmgp99y8zftmd3s5pmedqhyptwy6lm87hf5sse9xfq3`

That one belongs to private key number 1, which is famous precisely because everyone knows it. Never send coins to it: anyone could spend them.

Every Pearl mainnet address is exactly 63 characters, and every one is built from the same five parts.

_The parts of a Pearl Taproot address. The middle 52 characters are shortened here._

- **prl** is the [human-readable part](https://pearlcodex.com/glossary/#hrp). It names the network: prl for the real one, tprl for test networks.
- **1** is a separator, so software knows where the prefix ends.
- **p** is the [witness version](https://pearlcodex.com/glossary/#witness-version). p means version 1, a Taproot address, which is what wallets make by default. A z here would mean version 2, a P2MR address.
- **The next 52 characters** hold 32 bytes: on a Taproot address, that’s a public key itself, not a hash of one.
- **The last 6 characters** are the checksum.

The key inside the address isn’t quite your public key. Your wallet first applies a small, standard adjustment called the [Taproot tweak](https://pearlcodex.com/glossary/#taproot-tweak), which mixes in a hash of the key. That’s what lets an address quietly commit to backup spending rules, without showing them.

## What does the checksum do?

The last six characters are calculated from everything before them, using a format called [bech32m](https://pearlcodex.com/glossary/#bech32m). Mistype a character, and the checksum almost certainly stops fitting. Your wallet refuses the address before any coins move.

The format also leaves out characters that are easy to confuse. After the separator, you’ll never see the letters b, i or o, or the digit 1.

Try it: change any character of the address below and watch it turn invalid.

_Interactive: Bech32m explorer. Try it on the page: <https://pearlcodex.com/beginners/keys-and-addresses/>_

**Make a guess:** You copy an address and accidentally change one character. What happens when you try to send?

**Answer:** Your wallet refuses to send.

The checksum was computed from the original characters. With one changed, it no longer matches, so the wallet knows the address is wrong. Your coins stay where they are, and you can paste the address again.

## How does it all fit together?

Follow one key all the way through, step by step: random number, public key, tweak, address.

_Interactive: Key forge. Try it on the page: <https://pearlcodex.com/beginners/keys-and-addresses/>_

## What is safe to share?

- **Your address:** yes. That’s what it’s for. For privacy, wallets usually give you a fresh one each time.
- **Your public key:** a tweaked version of it is inside your address already.
- **Your private key:** never, with anyone, for any reason. The same goes for the 12 words that back it up, which the next page explains.

> **Pearl vs Bitcoin**
>
> - Same curve (secp256k1), same Schnorr signatures, same Taproot tweak and the same bech32m algorithm.
> - Only two address types exist: prl1p… (Taproot) and prl1z… (P2MR). There are no 1…, 3… or bc1q… style addresses, and no addresses built from a hash of a key.
> - For the same key, a Pearl address and a Bitcoin bc1p address share the same 52 middle characters. Only the prefix and the checksum differ.
> - Pearl mainnet addresses are 63 characters long; Bitcoin’s bc1p addresses are 62.

One private key is fine for one address. But wallets juggle hundreds of keys, and nobody wants to back up hundreds of 78-digit numbers. That’s where the 12 words come in.

## In short

- A private key is a randomly chosen number, so large that nobody can guess it. Whoever has it controls the coins.
- The public key is computed from the private key with one-way elliptic-curve math. It can check signatures but can’t be reversed.
- A Pearl address is 63 characters, starting prl1p for Taproot or prl1z for P2MR, and holds a 32-byte key or script fingerprint.
- The last six characters are a checksum, so a mistyped address is refused before any coins move.
- Share your address freely. Never share your private key or the words that back it up.

## Read the code

- [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`
- [Every address program must be exactly 32 bytes](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/btcutil/address.go#L234-L244) `node/btcutil/address.go:234-244`
- [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`
- [The mainnet prefix, prl](https://github.com/pearl-research-labs/pearl/blob/v1.5.5/node/chaincfg/params.go#L436) `node/chaincfg/params.go:436`

## Sources

### Pearl source

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

### Bitcoin standards

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