> For the complete documentation index, see [llms.txt](https://tokens-economy.gitbook.io/consensus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tokens-economy.gitbook.io/consensus/chain-based-hybrid-models/grandpa.md).

# 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>
