# Step-by-Step

Who's in town?

<figure><img src="/files/CdpcoWFt8YbJoRFi7NGY" alt=""><figcaption><p>who's in town</p></figcaption></figure>

* Mayor (host): create rooms and hold the mayor's key
* Museum owner (player): manage their museum by the day and might do something else at night

#### Day Phase:

<figure><img src="/files/baJ5KH8YPwKbWLVC2ZgO" alt=""><figcaption><p>day phase</p></figcaption></figure>

During the day, each owner runs their museum fair and square. The Artifacts and balances of the museum are publicly available to everyone.

We'll denote public information in green.

#### Lock up! (Secrets)

<figure><img src="/files/LTUhqmwlpXUHGVQvNPdS" alt=""><figcaption><p>lock up</p></figcaption></figure>

Cryptography technology allows users to control access to pieces of data. Each cryptographic primitive will have different properties. (you don't have to worry about it.)

At night, the mayor holds the key to every museum's balance while each museum owner has the key to their secret vault.

From now we will denote encrypted data in grey.

#### The Heist:

<figure><img src="/files/ygo7vCUwQvh4U0pDpbKr" alt=""><figcaption><p>the heist</p></figcaption></figure>

At night players can pay a "special visit" to a museum and might give themself some "souvenirs". In this step, players must create homomorphically encrypted data of the number of artifacts they want to take from each museum (0 means not taking any), encrypted data of the total of artifacts they took, and proof that the sum is correct.

#### Morning

<figure><img src="/files/WIeA69ohDwmha8pYS4uf" alt=""><figcaption><p>Morning</p></figcaption></figure>

In the morning, the mayor will decrypt and show what is missing. After this, it's time to report (or accuse) others. The accused player has to offer proof of whether they committed the crime.

#### Hide/Display Artifacts:

<figure><img src="/files/kCvaY1oPJjcQxPIQ4mc1" alt=""><figcaption><p>display artifacts</p></figcaption></figure>

The owner can display their ill-gotten artifacts by reducing the number in their private vault and adding to the museum. This process also uses homomorphic encryption and zkSNARK to ensure it's done correctly while keeping the vault's content a secret.


---

# 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://tetration-lab.gitbook.io/whitepaper/museum-heist/secret-behind-secret-heist/step-by-step.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.
