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

v1.16: [zk-token-sdk] replace hard-coded constants with constant variables (backport of #32274) #32322

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 28, 2023

This is an automatic backport of pull request #32274 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

…32274)

* add ristretto and scalar byte length constants

* add serialization and deserialization helper functions

* remove hard-coded constants in the `sigma` module

* remove hard-coded constants in the `encryption` module

* remove hard-coded constants in the `zk-token-elgamal` module

* Apply suggestions from code review

Co-authored-by: Tyera <[email protected]>

* fix docs for range proof constants

* Apply suggestions from code review

Co-authored-by: Tyera <[email protected]>

* clippy

---------

Co-authored-by: Tyera <[email protected]>
(cherry picked from commit 91186d3)
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #32322 (4d39245) into v1.16 (a7496b2) will increase coverage by 0.0%.
The diff coverage is 89.4%.

@@           Coverage Diff           @@
##            v1.16   #32322   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         762      762           
  Lines      207552   207539   -13     
=======================================
+ Hits       170077   170095   +18     
+ Misses      37475    37444   -31     

@samkim-crypto samkim-crypto merged commit 02d5647 into v1.16 Jun 29, 2023
@samkim-crypto samkim-crypto deleted the mergify/bp/v1.16/pr-32274 branch June 29, 2023 23:55
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