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: implement CheckNullifiersByPrefix endpoint #419

Merged
merged 7 commits into from
Jul 29, 2024

Conversation

tomyrd
Copy link
Collaborator

@tomyrd tomyrd commented Jul 25, 2024

closes #404

This is my first time implementing something in the node, I originally made this to better understand the node internals. Be sure to correct me if I missed something important in terms of validation or security.

This PR looks to add a new endpoint to the node that lets users check if a note is consumed without directly exposing its nullifier. In the next hours I'll also be adding a PR in the client that uses this endpoint to deal with imported notes.

@tomyrd tomyrd changed the title feat: implement check_nullifiers_by_prefix endpoint feat: implement CheckNullifiersByPrefix endpoint Jul 25, 2024
@tomyrd tomyrd force-pushed the tomyrd-get-nullifiers-by-prefix branch from e06f52b to 04c5890 Compare July 25, 2024 20:06
@tomyrd tomyrd marked this pull request as ready for review July 25, 2024 20:14
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you! Not a super in-depth review - but I did leave a few small comments inline.

CHANGELOG.md Outdated Show resolved Hide resolved
proto/responses.proto Outdated Show resolved Hide resolved
crates/store/src/db/sql.rs Outdated Show resolved Hide resolved
crates/store/src/db/mod.rs Outdated Show resolved Hide resolved
crates/store/src/db/sql.rs Show resolved Hide resolved
proto/rpc.proto Outdated Show resolved Hide resolved
proto/store.proto Outdated Show resolved Hide resolved
@tomyrd tomyrd force-pushed the tomyrd-get-nullifiers-by-prefix branch from 6588ea2 to a1b32b7 Compare July 26, 2024 16:13
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

All looks good! Thank you!

@tomyrd tomyrd force-pushed the tomyrd-get-nullifiers-by-prefix branch from a1b32b7 to 8875061 Compare July 29, 2024 13:57
@tomyrd tomyrd merged commit 0a9cbb8 into next Jul 29, 2024
9 checks passed
@tomyrd tomyrd deleted the tomyrd-get-nullifiers-by-prefix branch July 29, 2024 15:24
@bobbinth bobbinth mentioned this pull request Aug 27, 2024
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.

3 participants