# How cryptocurrency works

Crypto networks aim to answer a simple question: *who owns what, right now?* They do it in three layers:

1. **Cryptography** protects accounts and transactions with public/private keys. Your public key is like an address; your private key proves you’re allowed to move funds from that address.
2. **Blockchain** is a shared ledger made of “blocks” of transactions that are linked together. Each block references the previous one, making the history tamper‑resistant.
3. **Consensus** is how the network agrees on the latest valid state. Two common mechanisms are:

* **Proof of Work (PoW):** Specialized computers compete to add the next block. High security, higher energy use.
* **Proof of Stake (PoS):** Participants lock (“stake”) tokens to help validate blocks. Misbehavior can be penalized; energy use is drastically lower than PoW.


---

# Agent Instructions: 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:

```
GET https://docs.unx.com/what-is-cryptocurrency/how-cryptocurrency-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
