axiom-crypto / halo2-lib

Monorepo of halo2 crates
MIT License
236 stars 145 forks source link

feat: Hash to Curve Utility for Secp256k1 #261

Open shreyas-londhe opened 6 months ago

shreyas-londhe commented 6 months ago

Added support for hashing to secp256k1 curve inside circuit. Based on hashing-to-elliptic-curves and circom-secp256k1-hash-to-curve

Scope

Benchmarks

k = 18 lookup_bits = 17

Gate Chip | Phase 0: 8264595 advice cells
Total 266 fixed cells
Total range check advice cells to lookup per phase: [56807, 0, 0]