Comments (7)
The project's prime objective is to comply with the specific specifications, hash-to-curve and bls-signature. This doesn't mean that everything else is off the table, but it means that anything extra is expected to raise above mere proclamation of a possibility. In other words, is there a specification, application or proposed draft?
from blst.
Not sure that hash to scalar will be formalized in a spec, definitely doesn't look to be soon, so I'll close this issue for now.
The only thing I could find close to a spec is zkcrypto/bls12_381/hash_to_curve/scalar #L20 but this is behind the 'experimental' feature flag so seems some way off being suited for inclusion in blst.
from blst.
Hmmm... Latest hash-to-curve draft added separate test vectors for expand_message_xmd. This effectively puts pressure on blst to export expand_message_xmd. And if it is exported, then you can combine it with blst_scalar_from_be_bytes to hash to scalar, right?
from blst.
I would be happy to see expand_message_xmd exported. This would enable the functionality I'm looking for without explicitly labeling it, but I guess it goes against keeping the api surface small. Seeing that you're looking to macro-ify the api maybe later if hash-to-scalar becomes more explicit then it can be added.
from blst.
There is blst_expand_message_xmd now. Along with expand_message_xmd_SHA256_*.json
test vectors. As for bindings, it's available only in Go as private interface for the moment. I reckon it's lesser point to make it public, it's arguably more appropriate to provide a HashTo method. And then make similar arrangements in other cases. Yeah, it contradicts the original assertion that it should raise above mere possibility, but it wasn't isn't actually [a] black-n-white issue. Since blst_expand_message_xmd "barrier" is passed to accommodate dedicated test vectors, there is no reason to be overly rigid about its possible application.
BTW, what's your target language?
from blst.
I'm targeting rust.
I'm working on a fusion of threshold_crypto with blst, progress is in blsttc.
Originally blst was used for cross-compatibility of signatures with zcash chia etc (threshold_crypto used a different hash_g2 based on randchacha). Also for improved performance. But lately I've been working towards replacing bls12_381 crate with blst for Fr, G1, G2 (in this branch, still very WIP).
I want to replace this repeated hashing with hash to scalar.
from blst.
I'm targeting rust.
Now build/refresh.sh
is executed. Thanks for the links!
from blst.
Related Issues (20)
- Unoptimized sha256 funcs always do runtime detection HOT 4
- Update optimization level recommendation HOT 2
- LVI countermeasures in assembly HOT 1
- Rust bindings reference non-existent "std" feature HOT 3
- Error building blst Wasm in Rust HOT 2
- Windows: bool is 4-bytes by default HOT 3
- `blst` fails to build in Windows on ARM device HOT 4
- `blst` fails to build macos 13.x HOT 2
- Rust bindings: `PublicKey::key_validate` not linking for `x86_64-fortanix-unknown-sgx` (current master branch) HOT 11
- [Rust-binding] Proposal to implement `std::hash::Hash` for publicly exposed structures HOT 6
- Rust Bindings: Replacing slices of references to iterators of references for aggregation HOT 3
- BLST throws illegal instruction error on AMD K10 CPUs (Windows) HOT 27
- How Derive keys by path? HOT 2
- The same private key but different public key results HOT 2
- Segmentation fault in some machines and not in others using OpenBSD adJ74 HOT 14
- Rust bindings not recompiled on target CPU change HOT 6
- Unable to build on x86 macOS using LLVM 17.0.6 HOT 4
- When might the next release be cut? HOT 2
- ARMv7 optimization HOT 19
- Bug: Incorrect result from blst_fp_inverse()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blst.