Skip to content

fix(merkle): align naming#1005

Merged
glottologist merged 1 commit into
masterfrom
jason/rationalise_naming
Nov 20, 2025
Merged

fix(merkle): align naming#1005
glottologist merged 1 commit into
masterfrom
jason/rationalise_naming

Conversation

@glottologist

Copy link
Copy Markdown
Contributor

Describe the changes

  • Use min_byte_range/max_byte_range fields.
  • All merkle validation code updated to use consistent byte range terminology.

Related Issue(s)
Please link to the issue(s) that will be closed with this PR.

Checklist

  • Tests have been added/updated for the changes.
  • Documentation has been updated for the changes (if applicable).
  • The code follows Rust's style guidelines.

Additional Context
Add any other context about the pull request here.

@glottologist glottologist force-pushed the jason/rationalise_naming branch 2 times, most recently from 4350d28 to c6d6e4b Compare November 18, 2025 13:26
@glottologist glottologist changed the title Jason/rationalise naming fix(merkle): align naming Nov 18, 2025
@glottologist glottologist marked this pull request as ready for review November 18, 2025 13:48
Comment thread crates/types/src/block.rs
for proof in proofs {
let encoded_proof = Base64(proof.proof.clone());
validate_path(tx_root.0, &encoded_proof, proof.offset as u128).unwrap();
validate_path(tx_root.0, &encoded_proof, proof.last_byte_index as u128).unwrap();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the 3rd arg here is called target_offset, but we're passing in last_byte_index - so which is it, an offset, or an index?
(I assume it's an index given your rename, if so, please rename the arg in the validate_path function)

@JesseTheRobot JesseTheRobot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, one minor nit

@glottologist glottologist force-pushed the jason/rationalise_naming branch from c6d6e4b to 921b260 Compare November 18, 2025 15:07
@glottologist glottologist force-pushed the jason/rationalise_naming branch from 921b260 to af8feff Compare November 19, 2025 09:27
@glottologist glottologist merged commit 437365e into master Nov 20, 2025
38 of 41 checks passed
@glottologist glottologist deleted the jason/rationalise_naming branch November 20, 2025 12:08
JesseTheRobot pushed a commit that referenced this pull request Nov 20, 2025
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