feat(discovery-core): add secretfelt type and unify key param naming - #458
Merged
Merged
Conversation
m-kus
marked this pull request as ready for review
February 9, 2026 19:13
This was referenced Feb 9, 2026
Merged
Author
This was referenced Feb 9, 2026
This was referenced Feb 9, 2026
m-kus
force-pushed
the
pr-split/03-iviews-extensions
branch
from
February 11, 2026 13:05
2a6b820 to
52e1fa9
Compare
m-kus
force-pushed
the
pr-split/04-secretfelt-migration
branch
from
February 11, 2026 13:05
848fff3 to
3ae8597
Compare
m-kus
changed the base branch from
pr-split/03-iviews-extensions
to
graphite-base/458
February 11, 2026 15:03
m-kus
force-pushed
the
graphite-base/458
branch
from
February 11, 2026 15:07
52e1fa9 to
64df6c3
Compare
m-kus
force-pushed
the
pr-split/04-secretfelt-migration
branch
from
February 11, 2026 15:07
3ae8597 to
210b963
Compare
m-kus
changed the base branch from
graphite-base/458
to
pr-split/03-iviews-extensions
February 11, 2026 15:07
This was referenced Feb 11, 2026
m-kus
force-pushed
the
pr-split/04-secretfelt-migration
branch
from
February 11, 2026 16:08
210b963 to
d666926
Compare
m-kus
force-pushed
the
pr-split/03-iviews-extensions
branch
from
February 11, 2026 16:08
64df6c3 to
4ddeb8f
Compare
This was referenced Feb 11, 2026
Yoni-Starkware
approved these changes
Feb 11, 2026
Yoni-Starkware
left a comment
Collaborator
There was a problem hiding this comment.
@Yoni-Starkware reviewed 8 files and all commit messages, and made 3 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @m-kus).
crates/discovery-core/src/privacy_pool/hashes.rs line 129 at r1 (raw file):
token: Felt, index: u64, private_key: &super::types::SecretFelt,
Move the use to the top of the file; avoid using super in non-test context
Suggestion:
private_key: &SecretFelt,crates/discovery-core/src/test_fixtures.rs line 144 at r1 (raw file):
}; use crate::io_budget::IoBudget; use crate::privacy_pool::types::SecretFelt;
Please move up
Code quote:
use crate::io_budget::IoBudget;
use crate::privacy_pool::types::SecretFelt;
m-kus
changed the base branch from
pr-split/03-iviews-extensions
to
graphite-base/458
February 11, 2026 18:55
m-kus
force-pushed
the
pr-split/04-secretfelt-migration
branch
from
February 11, 2026 19:05
d666926 to
85233d3
Compare
m-kus
force-pushed
the
graphite-base/458
branch
from
February 11, 2026 19:05
4ddeb8f to
6c1f8aa
Compare
m-kus
commented
Feb 11, 2026
m-kus
left a comment
Author
There was a problem hiding this comment.
@m-kus resolved 2 discussions.
Reviewable status: 6 of 9 files reviewed, all discussions resolved (waiting on @Yoni-Starkware).
m-kus
force-pushed
the
pr-split/04-secretfelt-migration
branch
from
February 11, 2026 19:06
85233d3 to
47ec97f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

TL;DR
Implemented secure key handling with
SecretFeltto protect private keys from memory exposure.What changed?
SecretFeltwrapper type that automatically zeroes memory when droppedSecretFeltinstead of rawFeltdecrypt_outgoing_recipient_addrfunctionzeroizedependency for secure memory handlingserdefrom dev-dependencies to regular dependenciesThis change is