Skip to content

More Nova forward ports#113

Merged
huitseeker merged 2 commits intodevfrom
more_nova_port
Nov 10, 2023
Merged

More Nova forward ports#113
huitseeker merged 2 commits intodevfrom
more_nova_port

Conversation

@huitseeker
Copy link
Copy Markdown
Contributor

huitseeker and others added 2 commits November 9, 2023 17:28
- Implement marking of `NovaError` enum as non-exhaustive in `errors.rs`.
- Introduce a new error case `InvalidCommitmentKeyLength` in `NovaError` enum that checks the length of the provided commitment key.
- Improve code readability by renaming `generators_hint` variable to `ck_hint` in the `commitment_key` function.
* test: msm test

* refactor: batch invert and error flag

* Apply suggestions from @huitseeker's code review
Copy link
Copy Markdown
Contributor

@mpenciak mpenciak left a comment

Choose a reason for hiding this comment

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

Small typo, but otherwise looks good!


// check if the (relaxed) R1CS instances have two public outputs
if self.l_u_secondary.X.len() != 2
let is_instance_has_two_outpus = self.l_u_secondary.X.len() != 2
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.

Suggested change
let is_instance_has_two_outpus = self.l_u_secondary.X.len() != 2
let is_instance_has_two_outputs = self.l_u_secondary.X.len() != 2

nit: typo

Copy link
Copy Markdown
Contributor

@adr1anh adr1anh left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@adr1anh adr1anh left a comment

Choose a reason for hiding this comment

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

LGTM

@huitseeker huitseeker added this pull request to the merge queue Nov 10, 2023
Merged via the queue into dev with commit 6a9e870 Nov 10, 2023
@huitseeker huitseeker deleted the more_nova_port branch November 10, 2023 10:02
porcuquine pushed a commit to porcuquine/arecibo that referenced this pull request Nov 28, 2023
* feat: Refactor error handling and variable naming

- Implement marking of `NovaError` enum as non-exhaustive in `errors.rs`.
- Introduce a new error case `InvalidCommitmentKeyLength` in `NovaError` enum that checks the length of the provided commitment key.
- Improve code readability by renaming `generators_hint` variable to `ck_hint` in the `commitment_key` function.

* test: msm test and refactoring (lurk-lang#254)

* test: msm test

* refactor: batch invert and error flag

* Apply suggestions from @huitseeker's code review

---------

Co-authored-by: ashWhiteHat <phantomofrotten@gmail.com>
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.

4 participants