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

mastic: Add encoding for prep state #1185

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

cjpatton
Copy link
Collaborator

@cjpatton cjpatton commented Jan 6, 2025

Partially addresses #947.

@cjpatton cjpatton force-pushed the cjpatton/947-7-prep-state-serialization branch from 176bf27 to 5449de6 Compare January 6, 2025 20:03
@cjpatton cjpatton marked this pull request as ready for review January 6, 2025 20:52
@cjpatton cjpatton requested a review from a team as a code owner January 6, 2025 20:52
@cjpatton cjpatton force-pushed the cjpatton/947-6-more-test-vec branch from 5ac4626 to 9978104 Compare January 7, 2025 00:47
@cjpatton cjpatton changed the base branch from cjpatton/947-6-more-test-vec to main January 7, 2025 00:48
@cjpatton cjpatton force-pushed the cjpatton/947-7-prep-state-serialization branch from 5449de6 to 6e1662f Compare January 7, 2025 00:48
@cjpatton
Copy link
Collaborator Author

cjpatton commented Jan 7, 2025

Changed base to main.

@cjpatton cjpatton mentioned this pull request Jan 7, 2025
(mastic, agg_param): &(&Mastic<T, P, SEED_SIZE>, &MasticAggregationParam),
bytes: &mut Cursor<&[u8]>,
) -> Result<Self, CodecError> {
let output_shares = MasticOutputShare::decode_with_param(&(*mastic, *agg_param), bytes)?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This may be a lot of data to store, since the length of output_shares is linear in the number of candidate prefixes. In most cases, it would be more compact to store the VIDPF seed and correction words along with the candidate prefixes. However, re-inflating would cost CPU.

@cjpatton cjpatton force-pushed the cjpatton/947-7-prep-state-serialization branch from 6e1662f to 530053d Compare January 9, 2025 15:56
@divergentdave divergentdave merged commit 48bf7c6 into main Jan 16, 2025
6 checks passed
@divergentdave divergentdave deleted the cjpatton/947-7-prep-state-serialization branch January 16, 2025 17:00
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