Skip to content

teddav/tdd.nr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D-Doc

License: MIT Noir

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.

How it works

The 2D-Doc is a structured digital signature standard widely used for secure document authentication.

Components:

  • 2D-Doc barcode for documents.
  • Noir: ensuring efficient and privacy-preserving computations.

How to use

Use in your project

In Nargo.toml file, add the following dependency:

[dependencies]
tdd = { git = "https://github.com/teddav/tdd.nr", tag = "main" }

Import the library

Add this line:

use tdd::*;

Gates

Use bb to get the number of gates in the circuit:

bb gates -b circuit.json | jq ".functions[0].circuit_size"

Example

You can find an example in ./examples/tdd1


Contributing

Contributions are welcome! To get started:

  • Fork this repository.
  • Create a feature branch for your changes.
  • Submit a pull request detailing your improvements.

Sponsor

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.

About

2D-Doc verification in Noir

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages