https://github.com/bitjson/quantumroot
a quantum-secure Taproot
https://github.com/bitjson/quantumroot
bitcoin bitcoin-cash cashassembly quantum quantum-security quantumroot
Last synced: 7 months ago
JSON representation
a quantum-secure Taproot
- Host: GitHub
- URL: https://github.com/bitjson/quantumroot
- Owner: bitjson
- License: mit
- Created: 2025-07-01T20:04:26.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-07-01T20:22:32.000Z (8 months ago)
- Last Synced: 2025-07-19T00:17:12.972Z (7 months ago)
- Topics: bitcoin, bitcoin-cash, cashassembly, quantum, quantum-security, quantumroot
- Language: TypeScript
- Homepage: https://blog.bitjson.com/quantumroot/
- Size: 96.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Quantumroot: Quantum-Secure Vaults for Bitcoin Cash
Quantumroot is a quantum-secure Taproot. This repo contains a complete developer preview of a baseline contract implementation: a single-signer [`Quantumroot Schnorr+LM-OTS Vault](https://ide.bitauth.com/import-gist/60e779f718515b83fb80706e078acdb3).
The `Quantumroot Schnorr+LM-OTS Vault` is fully implemented in CashAssembly, including all private key derivation, address generation, and the quantum signing scheme. Wallets can compile transactions directly from the template using any HD Key – no template-specific code.
For more information, see the full Quantumroot post:
[Quantumroot: Quantum-Secure Vaults for Bitcoin Cash (bitjson.com) →](https://blog.bitjson.com/quantumroot)
---
## Example Transactions
For ease of review, this repo exports two example transactions, `Pre-Quantum Aggregation` and `Post-Quantum Aggregation`.
- The `Pre-Quantum Aggregation` transaction demonstrates the most privacy-preserving aggregation – Introspection-based **cross-input aggregation** – where all inputs spend UTXOs from the same address, i.e. no leaks of other wallet addresses.
- The `Post-Quantum Aggregation` transaction demonstrates both cross-input aggregation and a more specialized aggregation – CashToken-based **cross-address aggregation** – where UTXOs from multiple addresses are spent using the same quantum signature. (Strong privacy can still be achieved before and after such transactions, e.g. with ZKP covenants.)
### Pre-Quantum Aggregation
`Pre-Quantum Aggregation` spends 20 inputs:
- Input 0: a schnorr spend of Address A
- Input 1 through 19: introspection spends of Address A
### Post-Quantum Aggregation
`Post-Quantum Aggregation` spends 8 inputs. `Address Q` is a
- Input 0: includes the authorizing CashToken and quantum spend of Address Q
- Input 1: a token spend of Address A
- Input 2: a token spend of Address B
- Inputs 3 and 4: introspection spends of Address A
- Inputs 5 and 6: introspection spends of Address B
- Input 7: introspection spend of Address Q