Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skaunov/hash_to_curve
Noir lib for hashing to bigger curves
https://github.com/skaunov/hash_to_curve
curve field hashing-library noir zero-knowledge zk-snarks
Last synced: about 1 month ago
JSON representation
Noir lib for hashing to bigger curves
- Host: GitHub
- URL: https://github.com/skaunov/hash_to_curve
- Owner: skaunov
- License: apache-2.0
- Created: 2023-11-21T13:05:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-17T10:27:46.000Z (about 1 year ago)
- Last Synced: 2024-08-03T16:09:56.221Z (5 months ago)
- Topics: curve, field, hashing-library, noir, zero-knowledge, zk-snarks
- Language: Roff
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
- awesome-noir - Hash to curve - Noir lib for hashing to bigger curves (Libraries / Cryptography)
README
This Noir `lib` is for hashing to a curve bigger than your backend field (currently default seems to be Grumkin). If you want to hash to a smaller curve it would be more reasonable to leverage `std` library facilities.
Exposes standard interface, consisting of: **`hash_to_curve`, `map_to_curve`, and `hash_to_field`**.
Currently limited to `secp256k1_XMD:SHA-256_SSWU_RO_` with _DST shorter than 256_. \
Other suites and features will be added upon demand.If [the hasher] in your app is used for other purposes or shared -- pay attention to [Domain Separation Variants](https://www.rfc-editor.org/rfc/rfc9380.html#name-domain-separation-for-expan).
[the hasher]: w.r.t. current limitations it's# how to `use`
In your <./Nargo.toml> file, add it to the `dependencies` section.
```toml
[dependencies]
hash_to_curve = { tag = "v0.1.1", git = "https://github.com/skaunov/hash_to_curve" }
```