tdd.nr is a Noir library designed to verify 2D-Doc barcodes using zero-knowledge proofs.
This library enables privacy-preserving verification of structured documents, such as invoices, identity papers, and certificates, without revealing sensitive data.
Use cases include:
- Identity verification: validate government-issued documents.
- Financial transactions: authenticate invoices and receipts.
- Supply chain compliance: verify authenticity of regulatory documents.
The 2D-Doc is a structured digital signature standard widely used for secure document authentication.
Components:
In Nargo.toml file, add the following dependency:
[dependencies]
tdd = { git = "https://github.com/teddav/tdd.nr", tag = "main" }Add this line:
use tdd::*;Use bb to get the number of gates in the circuit:
bb gates -b circuit.json | jq ".functions[0].circuit_size"You can find an example in ./examples/tdd1
Contributions are welcome! To get started:
- Fork this repository.
- Create a feature branch for your changes.
- Submit a pull request detailing your improvements.
This project is supported by Hyli, the new proof-powered L1 to build the next generation of apps, as part of the Hyli grant program.