> For the complete documentation index, see [llms.txt](https://solana-unchained.gitbook.io/whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://solana-unchained.gitbook.io/whitepaper/why-this-exists/real-world-services/social-recovery-protocol.md).

# Social Recovery Protocol

**Problem:**\
Loss of private keys is the single largest cause of permanent fund loss in crypto. Existing recovery solutions are either custodial (email/password‑based, defeats self‑custody) or technically complex (multisig with hardware wallets).

**Solution:**\
A social recovery contract that allows a wallet owner to designate a set of guardians (friends, family, or institutional accounts) who can collectively restore access to a new private key.

**How it works:**

1. Setup – The user deploys a recovery contract linked to their primary wallet address. They specify:
2. A list of guardian addresses (minimum 3, maximum 10).
3. A recovery threshold (e.g., 3 out of 5).
4. A timelock delay (e.g., 7 days).
5. Recovery process – If the user loses access, they (or a guardian) initiate recovery. Each guardian signs a transaction approving the new wallet address. Once the threshold is met, the timelock begins. After the delay, the contract transfers all assets to the new address.
6. Cancellation – The original owner can cancel a pending recovery at any time by signing a cancellation transaction (if they still have access).

**Security features:**

* Guardians never have direct control over funds – only the ability to vote for a recovery.
* The timelock gives the owner time to react if a malicious recovery is attempted.
* A “social fallback” option: instead of on‑chain guardians, users can designate email addresses that receive recovery links (using threshold cryptography). This lowers the barrier for non‑technical users.

**Integration for other dApps:**\
The protocol is exposed as a set of Solana instructions that any wallet or dApp can call. A dApp can embed a “Enable Social Recovery” button, and the contract handles the rest. Fees for recovery operations are paid in \&UCHN tokens.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://solana-unchained.gitbook.io/whitepaper/why-this-exists/real-world-services/social-recovery-protocol.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
