> For the complete documentation index, see [llms.txt](https://earn.blink.sv/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://earn.blink.sv/chapter-302-bitcoin-how-does-it-work/302.04-lesson-public-key.md).

# 302.4 Lesson - publicKey

**Screen:** publicKey

**Headline:** Bitcoin Addresses and the Master Public Key

**Reward:** 3

**Text:** A master public key in Bitcoin is a key that is cryptographically derived from a Bitcoin private key and is used to generate Bitcoin addresses that payers can send Bitcoin to.

It can be used to generate an unlimited number of Bitcoin addresses from a single master public key.

While the private key is used to authorize Bitcoin transactions and therefore needs to be kept private, the Bitcoin addresses derived from the public key can be shared with a payer to receive payments from them.

Master public keys consist of a long sequence of numbers and letters and begin with xpub, ypub or zpub.

A Bitcoin address for receiving payments starts with either 1, 3 or bc1.

\=================================================================

## QUIZ

**Question:** What is the purpose of a master public key in Bitcoin?

**Answer:** To generate an unlimited number of Bitcoin addresses from a single key

**Feedback:** Correct! It's worth noting that, while funds can only be moved with the private key, it might be a good idea to not share the master public key on a public forum to preserve financial privacy. Only share Bitcoin addresses with payers to receive payments

**Correct:** true

**Answer:** To authorize Bitcoin transactions

**Feedback:** No, the master public key is not used to authorize Bitcoin transactions. That's the job of the private key. Try again

**Correct:** false

**Answer:** To verify that the supply of all bitcoin in existence does not exceed 21 million

**Feedback:** No. While every user can independently verify the monetary supply of in the bitcoin network with a bitcoin node, this is not what the master public key is used for. Try again.

**Correct:** false

<figure><img src="/files/DZrKkynzDiuJTJkdbOGb" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://earn.blink.sv/chapter-302-bitcoin-how-does-it-work/302.04-lesson-public-key.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
