You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The presence of iter().rev() primarily serves debugging purposes. This is because, in difficulty derivation, testing against trailing zeros is more user-friendly, as exemplified by let b: [u8; 2] = [0b11110000, 0] rather than let b: [u8; 2] = [0, 0b11110000].
Possible solution design or implementation
removing iter().rev() within the library and restricting it solely to tests.
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Summary
The presence of iter().rev() primarily serves debugging purposes. This is because, in difficulty derivation, testing against trailing zeros is more user-friendly, as exemplified by let b: [u8; 2] = [0b11110000, 0] rather than let b: [u8; 2] = [0, 0b11110000].
Possible solution design or implementation
removing iter().rev() within the library and restricting it solely to tests.
Additional context
N/A
The text was updated successfully, but these errors were encountered: