Skip to content

refactor: nuking broadcast param#6741

Merged
benesjan merged 4 commits intomasterfrom
05-29-refactor_nuking_broadcast_param
May 30, 2024
Merged

refactor: nuking broadcast param#6741
benesjan merged 4 commits intomasterfrom
05-29-refactor_nuking_broadcast_param

Conversation

@benesjan
Copy link
Contributor

@benesjan benesjan commented May 29, 2024

Fixes #6440

Copy link
Contributor Author

benesjan commented May 29, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @benesjan and the rest of your teammates on Graphite Graphite

@benesjan benesjan force-pushed the 05-29-feat_increasing_max_public_data_update_requests_per_call_removing_hack branch from 62a84c6 to a179be0 Compare May 30, 2024 06:20
Base automatically changed from 05-29-feat_increasing_max_public_data_update_requests_per_call_removing_hack to master May 30, 2024 07:05
@benesjan benesjan force-pushed the 05-29-refactor_nuking_broadcast_param branch from 03a4250 to 294ed0a Compare May 30, 2024 07:09
@benesjan benesjan changed the base branch from master to 05-29-refactor_cleanup_after_outgoing May 30, 2024 07:09
@benesjan benesjan marked this pull request as ready for review May 30, 2024 10:47
@benesjan benesjan requested review from LHerskind and Thunkar May 30, 2024 10:52
Base automatically changed from 05-29-refactor_cleanup_after_outgoing to master May 30, 2024 12:01
@benesjan benesjan force-pushed the 05-29-refactor_nuking_broadcast_param branch from 72ccf2a to 456cc77 Compare May 30, 2024 12:02
Copy link
Contributor

@LHerskind LHerskind left a comment

Choose a reason for hiding this comment

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

Mostly looks good, an extra comment would be good 👍 After that, good from me

fn set_constant(value: Field) {
let mut note = TestNote::new(value);
storage.example_constant.initialize(&mut note, false, GrumpkinPoint::zero(), GrumpkinPoint::zero());
storage.example_constant.initialize(&mut note, GrumpkinPoint::zero(), GrumpkinPoint::zero());
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be nice to add a small comment here that we are not failing because the testnote is never broadcast. It is in the note itself, but this would usually cause a failure if actually broadcasting 🤷

Copy link
Contributor Author

@benesjan benesjan May 30, 2024

Choose a reason for hiding this comment

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

Agree. Added the comment in 283507d

// Add the note
const note = new Note([new Fr(value)]);

// We have to manually add the note because the note ciphertext is encrypted with zero keys since there
Copy link
Contributor

Choose a reason for hiding this comment

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

See comment earlier related to the test_contract. It is not actually encrypted, it is not broadcast.

Copy link
Contributor Author

@benesjan benesjan May 30, 2024

Choose a reason for hiding this comment

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

Good point. Clarified in 283507d

@benesjan benesjan force-pushed the 05-29-refactor_nuking_broadcast_param branch from c998e60 to 283507d Compare May 30, 2024 12:20
@benesjan benesjan enabled auto-merge (squash) May 30, 2024 12:21
@benesjan benesjan merged commit 2d69253 into master May 30, 2024
@benesjan benesjan deleted the 05-29-refactor_nuking_broadcast_param branch May 30, 2024 12:51
@benesjan benesjan mentioned this pull request May 30, 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.

feat(Keys): Update broadcast and create_note

2 participants