Skip to content

refactor: another message related naming fixes#16946

Merged
benesjan merged 1 commit into
nextfrom
09-11-refactor_another_message_related_naming_fixes
Sep 23, 2025
Merged

refactor: another message related naming fixes#16946
benesjan merged 1 commit into
nextfrom
09-11-refactor_another_message_related_naming_fixes

Conversation

@benesjan

@benesjan benesjan commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

Fixes #16885

As promised in here in this PR I rename LogEncryption trait as MessageEncryption and I drop "_log" from it's method names. Didn't replace it with "_message" as it seemed unncessary. I also do some related minor renamings.

benesjan commented Sep 11, 2025

Copy link
Copy Markdown
Contributor Author

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

Comment thread docs/docs/migration_notes.md Outdated
recipient: AztecAddress,
) {
// do_process_log expects a standard aztec-nr encoded note, which has the following shape:
// do_process_message expects a standard aztec-nr encoded note, which has the following shape:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

do_process_log was renamed to do_process_message a while ago.

},
encryption::log_encryption::LogEncryption,
encryption::message_encryption::MessageEncryption,
logs::arithmetic_generics_utils::{

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The noir-projects/aztec-nr/aztec/src/messages/logs directory should be renamed but that is for another PR (would make this one un-reviewable as then the diff would be broken).

@@ -33,57 +33,57 @@ fn get_arr_of_size__ciphertext<let FullPt: u32, let PtAesPadding: u32>(

// Ok, so we have the following bytes:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Big diff in this file but it's all just renamings


// Ok, so we have the following bytes:
// eph_pk_sign, header_ciphertext, ciphertext:
// Let lbwop = 1 + HEADER_CIPHERTEXT_SIZE_IN_BYTES + |ct| // aka log bytes without padding

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"log bytes without padding" --> "message bytes without padding"

@benesjan benesjan force-pushed the 09-11-refactor_another_message_related_naming_fixes branch from f47e508 to 73884f0 Compare September 11, 2025 10:02
@benesjan benesjan marked this pull request as ready for review September 11, 2025 10:02
@benesjan benesjan requested a review from nventuro September 11, 2025 10:22
@benesjan benesjan force-pushed the 09-11-refactor_fixing_offchain_onchain_naming branch from abef340 to debd73b Compare September 11, 2025 14:24
@benesjan benesjan force-pushed the 09-11-refactor_another_message_related_naming_fixes branch from 73884f0 to 041d921 Compare September 11, 2025 14:24
@benesjan benesjan force-pushed the 09-11-refactor_fixing_offchain_onchain_naming branch from debd73b to d76975f Compare September 11, 2025 15:02
@benesjan benesjan force-pushed the 09-11-refactor_another_message_related_naming_fixes branch from 041d921 to d66397e Compare September 11, 2025 15:02
@AztecBot AztecBot force-pushed the 09-11-refactor_fixing_offchain_onchain_naming branch from d76975f to c46944c Compare September 11, 2025 15:34
@benesjan benesjan changed the base branch from 09-11-refactor_fixing_offchain_onchain_naming to graphite-base/16946 September 12, 2025 06:14
@benesjan benesjan force-pushed the 09-11-refactor_another_message_related_naming_fixes branch from d66397e to e930b81 Compare September 12, 2025 12:15
@benesjan benesjan changed the base branch from graphite-base/16946 to next September 12, 2025 12:15

@nventuro nventuro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lovely

@benesjan benesjan force-pushed the 09-11-refactor_another_message_related_naming_fixes branch from e930b81 to d90b28b Compare September 23, 2025 15:58
@benesjan benesjan enabled auto-merge September 23, 2025 15:59
@AztecBot AztecBot force-pushed the 09-11-refactor_another_message_related_naming_fixes branch from d90b28b to b042d34 Compare September 23, 2025 16:25
Fixes #16885

As promised in [here](#16882 (comment)) in this PR I rename `LogEncryption` trait as `MessageEncryption` and I drop "_log" from it's method names. Didn't replace it with "_message" as it seemed unncessary. I also do some related minor renamings.
@AztecBot AztecBot force-pushed the 09-11-refactor_another_message_related_naming_fixes branch from b042d34 to c4b4d5e Compare September 23, 2025 16:29
@benesjan benesjan added this pull request to the merge queue Sep 23, 2025
auto-merge was automatically disabled September 23, 2025 16:45

Pull Request is not mergeable

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 23, 2025
@benesjan benesjan added this pull request to the merge queue Sep 23, 2025
Merged via the queue into next with commit dd97ce0 Sep 23, 2025
15 checks passed
@benesjan benesjan deleted the 09-11-refactor_another_message_related_naming_fixes branch September 23, 2025 20:16
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.

Rename LogEncryption as MessageEncryption

3 participants