Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Hash to Curve Utility for Secp256k1 #261

Open
wants to merge 24 commits into
base: community-edition
Choose a base branch
from

Conversation

shreyas-londhe
Copy link

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

Scope

  • Sha256Chip - A chip to calculate sha256 hash in circuit with flexible input length.

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]

@shreyas-londhe shreyas-londhe force-pushed the feat/secp256k1-hash2curve branch 3 times, most recently from 49001fe to 23f3419 Compare March 6, 2024 07:22
shreyas-londhe and others added 12 commits April 22, 2024 16:48
* chore: fix link (axiom-crypto#256)

* chore: update `snark-verifier` git tag in `zkevm-hashes`

* chore: update rust toolchain

* chore: fix clippy

* chore: update should_panic message

* chore: switch to community-edition

---------

Co-authored-by: yanziseeker <153156292+AdventureSeeker987@users.noreply.github.com>
* chore: fixing typos

* fix: lint issue
* chore:fix typo

* chore:fix typo
* Update mod.rs

* Update mod.rs

* Update fixed_base.rs

* Update mod.rs

* Update bytes.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants