Skip to content

Conversation

@jimmychu0807
Copy link

@jimmychu0807 jimmychu0807 commented Oct 5, 2025

This PR is built on top of PR #2 by @Dyslex7c

Check the latest CI test and lint here:
https://github.com/jimmychu0807/grandine-universal-precompiles/actions

@jimmychu0807
Copy link
Author

@ArtiomTr this PR is good to review.
Should merge this first before merging grandinetech/grandine#386.

.editorconfig Outdated
@@ -0,0 +1,24 @@
root = true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not really necessary, it is better to keep changes as small as possible, as it is just patch for original dependency, not a fork of it

Comment on lines 22 to 31
#[cfg(not(feature = "zkvm-pico"))]
<G1Projective as HashToCurve<ExpandMsgXmd<sha2::Sha256>>>::encode_to_curve(
[black_box(message)],
black_box(dst),
)
);
#[cfg(feature = "zkvm-pico")]
<G1Projective as HashToCurve<ExpandMsgXmd<sha2::Sha256>>>::encode_to_curve(
black_box(message),
black_box(dst),
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this needs to be unified - single HashToCurve api, not two different versions for different backends

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unified now.

@jimmychu0807 jimmychu0807 requested a review from ArtiomTr October 31, 2025 13:47
@ArtiomTr ArtiomTr merged commit dfe056b into grandinetech:zkcrypto/bls12_381-6bb9695 Nov 3, 2025
@jimmychu0807 jimmychu0807 deleted the zkcrypto/bls12_381 branch November 3, 2025 09:24
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.

2 participants