Skip to content

Conversation

@lowhung
Copy link
Collaborator

@lowhung lowhung commented Oct 29, 2025

What this PR does

Implements #257

This PR combines the byte array macros @alexwoods wrote with the hash declarations so we get both options in one file so it's easier to find.

@lowhung lowhung changed the title Refactor: Replace byte array macros with type-safe hash declarations and Bech32 encoding support. Remove redundant byte_array module and update references across modules. Refactor: Combine byte array macros with hash.rs Oct 29, 2025
@lowhung lowhung force-pushed the lowhung/introduce-combined-hash-file branch from b33c4c6 to 8fd44b2 Compare October 29, 2025 18:28
…and Bech32 encoding support. Remove redundant `byte_array` module and update references across modules.
@lowhung lowhung force-pushed the lowhung/introduce-combined-hash-file branch from 8fd44b2 to 8952522 Compare October 29, 2025 18:30
…handling, adjust Bech32 encoding/decoding with detailed context
…handling, adjust Bech32 encoding/decoding with detailed context
@lowhung lowhung force-pushed the lowhung/introduce-combined-hash-file branch from cee52c4 to 84cd45a Compare October 29, 2025 21:29
/// Pool ID (28-byte hash)
pub type PoolId = Hash<28>;

pub type AddrKeyhash = Hash<28>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Keeping these local for now, but in my follow-up PR I'll move these into types.rs

}

#[test]
#[ignore]
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️

Copy link
Collaborator

@sandtreader sandtreader left a comment

Choose a reason for hiding this comment

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

Looks great, best of both worlds :-)

@lowhung lowhung merged commit aec46a2 into main Oct 30, 2025
2 checks passed
@lowhung lowhung deleted the lowhung/introduce-combined-hash-file branch October 30, 2025 15: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.

5 participants