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

feat: debug_log_array Noir function #1057

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Conversation

benesjan
Copy link
Contributor

Description

I needed this to help Suyash debug Noir ECDSA issues.

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.

@benesjan benesjan marked this pull request as draft July 13, 2023 09:47
@benesjan benesjan marked this pull request as ready for review July 13, 2023 10:55
@benesjan benesjan requested a review from spalladino July 13, 2023 10:55
Copy link
Collaborator

@spalladino spalladino left a comment

Choose a reason for hiding this comment

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

LGTM!

* @returns Returns `true` if all elements are valid byte representations, `false` otherwise.
* @throws Throws an error if any element has an invalid length.
*/
function onlyBytes(array: string[]): boolean {
Copy link
Collaborator

Choose a reason for hiding this comment

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

For the future, lodash#every is your friend ;-)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Damn, it has been too long since I last suggested using lodash in a PR review.

@spalladino spalladino merged commit 29989c7 into master Jul 13, 2023
@spalladino spalladino deleted the janb/debug_log_array branch July 13, 2023 12:09
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