Skip to content

Conversation

@jstuczyn
Copy link
Contributor

@jstuczyn jstuczyn commented Apr 8, 2025

this PR introduces new packet version that changes how PayloadKey is generated. rather than directly using the output of the hkdf(shared_secret), the seed is first extracted from that operation which is run through another hkdf to derive the key.

@jstuczyn jstuczyn requested review from aniampio and simonwicky April 8, 2025 14:54
let mut expanded_shared_secrets = Vec::with_capacity(route.len());

let mut blinding_factors = vec![initial_secret.clone()];
let mut expanded_shared_secrets = Vec::new();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this loop does the same thing as before, I just restructured it to remove clone on the initial_secret

@aniampio
Copy link
Contributor

aniampio commented Apr 8, 2025

looks good to me!

@jstuczyn jstuczyn merged commit 9955d64 into develop Apr 9, 2025
8 checks passed
@jstuczyn jstuczyn deleted the feature/seeded_payload_keys branch April 9, 2025 08:31
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