Skip to content

BitDecomposition in eclair#37

Merged
bhgomes merged 16 commits into
mainfrom
feat/bit_decomposition
Jan 11, 2023
Merged

BitDecomposition in eclair#37
bhgomes merged 16 commits into
mainfrom
feat/bit_decomposition

Conversation

@SupremoUGH

@SupremoUGH SupremoUGH commented Dec 8, 2022

Copy link
Copy Markdown
Contributor

Bit decomposition in eclair:

Changes:
eclair:

  • bool.rs: Defined the BitDecomposition trait, implemented it for the native compiler and the usual types.
  • num.rs: Impl for UnsignedInteger
  • define to_bits_be() in the trait with default impl

plugins::arkworks

  • constraint: Impl for FpVar
  • algebra: Impl for ScalarVar

Before we can merge this PR, please make sure that all the following items have been checked off:

  • Linked to an issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Added one line describing your change in CHANGELOG.md and added the appropriate L- label to the PR.
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Checked that changes and commits conform to the standards outlined in CONTRIBUTING.md.

Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
Signed-off-by: Francisco Hernandez Iglesias <f.hernandeziglesias@outlook.com>
@SupremoUGH SupremoUGH added A-cryptography Area: Issues and PRs related to Cryptography L-added Changelog: add these changes to the `added` section of the changelog labels Dec 8, 2022
Comment thread plugins/arkworks/src/constraint.rs Outdated
Comment thread plugins/arkworks/src/constraint.rs Outdated
Comment thread plugins/arkworks/src/constraint.rs Outdated
SupremoUGH added 4 commits January 9, 2023 14:40
Signed-off-by: SupremoUGH <francisco@manta.network>
@SupremoUGH SupremoUGH marked this pull request as ready for review January 10, 2023 13:55

@GhostOfGauss GhostOfGauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good I just suggest improving the correctness test

Comment thread plugins/arkworks/src/constraint/mod.rs Outdated
@bhgomes bhgomes merged commit 47b3f9a into main Jan 11, 2023
@bhgomes bhgomes deleted the feat/bit_decomposition branch January 11, 2023 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cryptography Area: Issues and PRs related to Cryptography L-added Changelog: add these changes to the `added` section of the changelog

Development

Successfully merging this pull request may close these issues.

3 participants