> For the complete documentation index, see [llms.txt](https://solvency.gitbook.io/picoin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://solvency.gitbook.io/picoin/security/commit-reveal.md). Agents can also search and read this documentation through its [MCP server](https://solvency.gitbook.io/picoin/~gitbook/mcp).

# Commit-Reveal

Picoin uses a commit-reveal workflow to reduce the possibility of miners selectively calculating only validation samples.

The mining process is divided into two phases:

#### Commit Phase

The miner computes the assigned segment and submits:

* result hash;
* Merkle root;
* metadata.

At this stage, the miner does not yet know which samples will later be verified.

#### Reveal Phase

After the commitment is accepted, the protocol generates deterministic validation samples.

The miner must then reveal:

* requested positions;
* corresponding values;
* Merkle proofs.

This mechanism helps prevent selective computation attacks.
