# GRANDPA

GRANDPA (GHOST-based Recursive ANcestor Deriving Prefix Agreement), also previously known as [SHAFT](https://hackmd.io/Jd0byWX0RiqFiXUVC78Bdw?view#SHAFT) (SHared Ancestry Finality Tool), and originally known as [AfG](https://hackmd.io/Jd0byWX0RiqFiXUVC78Bdw?view#AFG), is a finality gadget for blockchains, implemented in Rust.&#x20;

[**GRANDPA Block Finality in Polkadot: An Introduction (Part 1)**](https://medium.com/polkadot-network/grandpa-block-finality-in-polkadot-an-introduction-part-1-d08a24a021b5)

### Used in&#x20;

* *Polkadot is a blockchain for scalable decentralized computation and interoperability.*

### Whitepaper

* The formal specification is published at <https://github.com/w3f/consensus/blob/master/pdf/grandpa.pdf>

### Resources

The first implementation is underway in Rust at <https://github.com/paritytech/finality-afg>


---

# 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://tokens-economy.gitbook.io/consensus/chain-based-hybrid-models/grandpa.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.
