# Attack Execution

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

*The receiver generates a new key pair and gives the public key to the sender shortly before signing. This prevents the sender from preparing a chain of blocks ahead of time by working on it continuously until he is lucky enough to get far enough ahead, then executing the transaction at that moment. Once the transaction is sent, the dishonest sender starts working in secret on a parallel chain containing an alternate version of his transaction.*

\- Satoshi Nakamoto, Bitcoin Whitepaper

In executing an attack, the sender generates a new key pair and provides the public key to the recipient just before signing the transaction.

**This means that the attack cannot be started any time prior to the transaction taking place.**

Once the transaction is sent, the dishonest sender begins working secretly on a parallel chain that contains an alternate version of the transaction.

The **attacker must then escape with the goods (making the attack impractical for anything that takes days to settle legally)** before then releasing an alternative chain of blocks which includes their double spend and is longer than the one which the rest of the network is mining against.


---

# 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://hub.bsvblockchain.org/higher-learning/bsv-academy/bitcoin-whitepaper-series/section-11-calculations-bitcoin-whitepaper/attack-execution.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.
