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

bump public constants #1316

Merged
merged 4 commits into from
Aug 2, 2023
Merged

bump public constants #1316

merged 4 commits into from
Aug 2, 2023

Conversation

rahul-kothari
Copy link
Contributor

@rahul-kothari rahul-kothari commented Jul 31, 2023

Description

Increase constants for public read/write!
Closes #1290

Checklist:

  • I have reviewed my diff in github, line by line.
  • Every change is related to the PR description.
  • I have linked this pull request to the issue(s) that it resolves.
  • There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
  • The branch has been merged or rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

@rahul-kothari rahul-kothari force-pushed the rk/public_constants branch 2 times, most recently from 1967597 to a8fddaa Compare August 1, 2023 14:06
@rahul-kothari rahul-kothari marked this pull request as ready for review August 1, 2023 14:56
@@ -34,7 +34,7 @@ describe('kernel/public_kernel', () => {
await expect(simulatePublicKernelCircuit(input)).rejects.toThrow(
new CircuitError(
7009,
`public_kernel_circuit: too many public data reads in one tx - array_push: capacity exceeded. Limit: 4
`public_kernel_circuit: too many public data reads in one tx - array_push: capacity exceeded. Limit: 8
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to read from constants for the error messages instead of having hardcoded, if bumped you still need to find this value to update anyways.

@LHerskind LHerskind mentioned this pull request Aug 1, 2023
6 tasks
@ludamad
Copy link
Collaborator

ludamad commented Aug 1, 2023

Didn't see Lasse reviewed, of course get his buy-in

@rahul-kothari rahul-kothari requested a review from LHerskind August 2, 2023 09:41
@rahul-kothari rahul-kothari merged commit d71fbcb into master Aug 2, 2023
@rahul-kothari rahul-kothari deleted the rk/public_constants branch August 2, 2023 10:27
codygunton pushed a commit that referenced this pull request Jan 23, 2024
* schnorr:
- use optional instead of possibly invalid signatures
  - c_bind functions return bool
  - need to change bb.js to handle this case
- implement proof of possession in a separate module
- unify call to generate schnorr challenge
- domain separation for H_reg and H_non
- check number of outputs during "combine_sigs"

* compare number of round 1 nonces with num signers

* fix verification of FS challenge in both pop & sig

* added comments and parametrize test over hash

* - slightly clean up headers
- use two hash functions for proper domain separation
- more generic serialization functions
- hash message when generating a to prevent colisions
- reinstate hmac for PoP
- additional verification of round1 messages
- update documentation

* fix `valid_round1_nonces` usage

* revert changes to tests used for testing

* - hash the group generator for Hnon and Hreg
- update documentation
- use prefix and suffix instead of hashing m for 'a'
- change order of

Co-authored-by: Arijit Dutta <[email protected]>

* Return zero buffer if failed to create combined key.

* Add more error handlings.

* Change return value type.

* added comments to multisig ts wrapper

* fix formatting

* fix domain separation
using string_view led to the domain separator not being included in hash

* addresses comments by @arijitdutta67

Co-authored-by: Arijit Dutta <[email protected]>
Co-authored-by: Leila Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Bump the constants for x per kernel
3 participants