# Local Storage Encryption with Sphincs+

Local storage of sensitive wallet data, such as passphrases and private keys, is another critical area where quantum-resistant measures must be applied. The QRWP utilizes Sphincs+ to encrypt local wallet data, ensuring that this information remains secure, even in the presence of quantum computing capabilities.

### **Local Encryption Process:**

1. **Passphrase and Key Encryption:** Passphrases and private keys are encrypted using the stateless hash-based signature scheme provided by Sphincs+.
2. **Resilience Against Quantum Attacks:** Sphincs+ generates robust, quantum-resistant cryptographic proofs that secure local data, making it computationally infeasible for quantum computers to decrypt stored information without the appropriate credentials.
3. **Secure Decryption on Access:** When the user accesses the wallet, the encrypted data is decrypted in a secure memory enclave, minimizing exposure to potential attacks.
4. **Tamper-Resistant Mechanisms:** The protocol implements tamper detection to ensure that any unauthorized attempts to access or modify the encrypted data trigger protective measures, such as invalidating the data or alerting the user.

By leveraging Sphincs+ for local storage encryption, the QRWP ensures that wallet data is not only inaccessible to traditional attacks but also remains secure against advanced quantum computational threats. This provides users with a high level of confidence in the integrity and confidentiality of their wallet information.


---

# 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://docs.quantlayer.ai/local-storage-encryption-with-sphincs+.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.
