-
Notifications
You must be signed in to change notification settings - Fork 790
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
util: move misplaced functions #1825
Conversation
One note, I also modified |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
Yes, I think that makes very much sense, actually thought so too some time ago. First TODO item implementation also looks good. |
TBH, I can't really follow up which arguments I had here, especially since I wonder if we want to do any further consolidation here, will cautiously remove this TODO item from the v6 list. We might give things like that some additional thought once we do a final clean-up on the the Util library (which is still needed with all the BigInt changes and stuff, we need to have some look here with a broader perspective and see if things are still consistent). |
74de550
to
9f250cb
Compare
Have rebased this, also added a note on the second TODO item on the initial comment. Would merge in this current state if tests pass. |
9f250cb
to
3240172
Compare
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.
LGTM
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
* util: move misplaced functions * add unpadBuffer back * Fix tttttttttttttypo * make unpadHexString return Hex String!
Addresses the below item from #1717
On the second item, in looking at the code, I'm not really sure it makes sense to merge
stripZeroes
andbigIntToUnpaddedBuffer
as they do different things. To my way of thinking, it makes much more sense to merge:stripZeros
unpadBuffer
unpadArray
unpadHexString
@holgerd77 Any thoughts here since it looks like the second item was your recommendation?