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

proof: absent key proof doesn't verify #400

Merged
merged 3 commits into from
Oct 17, 2023
Merged

proof: absent key proof doesn't verify #400

merged 3 commits into from
Oct 17, 2023

Conversation

jsign
Copy link
Collaborator

@jsign jsign commented Oct 15, 2023

This PR creates a specially crafted unit test that generates proofs that don't verify (i.e: the library isn't self-consistent).

A fix proposal is done in #401 (targeting this branch).

I'm separating the unit test from the (proposed, TBD) fix so we can have this branch keep exploring the problem if needed.

Note: CI not passing in this branch (as is) is expected since that's the point of the added test.

Fix merged.

@jsign jsign changed the title test: gen proof with only absent keys proof: absent key proof doesn't validate Oct 15, 2023
@jsign jsign changed the title proof: absent key proof doesn't validate proof: absent key proof doesn't verify Oct 15, 2023
@jsign jsign mentioned this pull request Oct 15, 2023
Copy link
Member

@gballet gballet left a comment

Choose a reason for hiding this comment

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

LGTM, could you move it to proof_test, though, so that it's with all the other proof verification tests?

tree_test.go Outdated Show resolved Hide resolved
tree_test.go Outdated Show resolved Hide resolved
tree_test.go Outdated Show resolved Hide resolved
jsign added 2 commits October 16, 2023 11:28
Signed-off-by: Ignacio Hagopian <[email protected]>
* fix absent keys in proofs

Signed-off-by: Ignacio Hagopian <[email protected]>

* add POA stub marker

Signed-off-by: Ignacio Hagopian <[email protected]>

* defensive case

Signed-off-by: Ignacio Hagopian <[email protected]>

* fixes

Signed-off-by: Ignacio Hagopian <[email protected]>

* improving comment

Signed-off-by: Ignacio Hagopian <[email protected]>

---------

Signed-off-by: Ignacio Hagopian <[email protected]>
@jsign jsign marked this pull request as ready for review October 17, 2023 12:29
Copy link
Member

@gballet gballet left a comment

Choose a reason for hiding this comment

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

LGTM

@jsign jsign merged commit aae823f into master Oct 17, 2023
6 checks passed
@jsign jsign deleted the jsign-test-case branch October 17, 2023 12:49
@jsign jsign mentioned this pull request Oct 17, 2023
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