-
Notifications
You must be signed in to change notification settings - Fork 5
Refactor: Combine byte array macros with hash.rs #321
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
Conversation
byte_array module and update references across modules.b33c4c6 to
8fd44b2
Compare
…and Bech32 encoding support. Remove redundant `byte_array` module and update references across modules.
8fd44b2 to
8952522
Compare
…d unused examples
…handling, adjust Bech32 encoding/decoding with detailed context
…handling, adjust Bech32 encoding/decoding with detailed context
cee52c4 to
84cd45a
Compare
| /// Pool ID (28-byte hash) | ||
| pub type PoolId = Hash<28>; | ||
|
|
||
| pub type AddrKeyhash = Hash<28>; |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
sandtreader
left a comment
There was a problem hiding this 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 :-)
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.