gnark-crypto-primitives

module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2026 License: AGPL-3.0

README

Vocdoni Gnark Crypto Primitives

A set of custom circuits writted in Gnark that are required to support anonymous voting on Vocdoni.

Primitives included


DISCLAIMER

This repository provides proof-of-concept implementations. These implementations are for demonstration purposes only. These circuits are not audited, and this is not intended to be used as a library for production-grade applications.

Directories

Path Synopsis
ecc
bn254/eddsa
eddsa package contains the implementation of a EdDSA signature verifier compatible with Iden3 and Circomlib scheme in Gnark.
eddsa package contains the implementation of a EdDSA signature verifier compatible with Iden3 and Circomlib scheme in Gnark.
format
format package provides helper circuit functions to transform points (x, y) from the TwistedEdwards format to Reduced TwistedEdwards format and vice versa, over BabyJubJub curve.
format package provides helper circuit functions to transform points (x, y) from the TwistedEdwards format to Reduced TwistedEdwards format and vice versa, over BabyJubJub curve.
emulated/bn254/poseidon
Using recommended parameters from whitepaper https://eprint.iacr.org/2019/458.pdf (table 2, table 8)
Using recommended parameters from whitepaper https://eprint.iacr.org/2019/458.pdf (table 2, table 8)
native/bn254/poseidon
Using recommended parameters from whitepaper https://eprint.iacr.org/2019/458.pdf (table 2, table 8)
Using recommended parameters from whitepaper https://eprint.iacr.org/2019/458.pdf (table 2, table 8)
tree
smt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL