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

Uncompressed G1 group elements #19684

Merged
merged 37 commits into from
Oct 21, 2024
Merged

Uncompressed G1 group elements #19684

merged 37 commits into from
Oct 21, 2024

Conversation

jonas-lj
Copy link
Contributor

@jonas-lj jonas-lj commented Oct 3, 2024

Description

Currently, group elements are represented in compressed form and must be decompressed before each operation. This is a rather expensive operation to do, in particular if many elements are used.

This PR introduces a new uncompressed representation of BLS12381-G1 elements and a function to add a vector of uncompressed elements. For 500 terms, computing a sum will be about 100x faster to compute than using compressed representation.

Test plan

Unit tests.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol: Introduce an uncompressed representation of BLS12381-G1 group elements for faster addition of group elements.
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 8:45am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Oct 21, 2024 8:45am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Oct 21, 2024 8:45am
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Oct 21, 2024 8:45am

@jonas-lj jonas-lj merged commit df0cb67 into main Oct 21, 2024
50 checks passed
@jonas-lj jonas-lj deleted the jonas/uncompressed_g1_pts branch October 21, 2024 10:03
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