-
-
Notifications
You must be signed in to change notification settings - Fork 76
Fixing inconsistency between generated entropy value type and the expected HDWallet.entropy value type #101
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
Codecov ReportBase: 85.60% // Head: 86.00% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #101 +/- ##
==========================================
+ Coverage 85.60% 86.00% +0.40%
==========================================
Files 22 24 +2
Lines 2445 2630 +185
Branches 498 517 +19
==========================================
+ Hits 2093 2262 +169
- Misses 258 270 +12
- Partials 94 98 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…efault value for passphrase parameter REFACTOR. pulling out duplicate seed creating logic into a class method ADD. adding test_is_entropy() testcase against meumonic package generated entropy value
ae0c1a3
to
d6838b3
Compare
…ectly from entropy value
Since crypto/bip32.py is being implemented and maintained by PyCardano project contributers, I think this module should be included in the coverage report in my opinion. What do you think @cffls ? |
Thank you for raising this PR! Yes, I think it makes sense to include this file to coverage. Please feel free to change |
…zation-lib test cases to increase MAINNET specific test coverage
Major Updates
Minor Updates
|
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, thanks for contributing to this project! @henryyuanheng-wang Henry, could you please take a look at this?
…ution similar to other popular libraries
Hi @henryyuanheng-wang , I have a question regarding I've also just pushed another commit which can be rolled back if you wish to. |
Hi @daehan-koreapool , thanks for catching the inconsistencies and for making some great improvements! Everything looks pretty good. I like how you simplified the derivation step so a new HDWallet instance is created without needing to pass a parent HDWallet (was a bit redundant in hindsight). One question regarding the function name change from To answer your question regarding public keys derived either |
It's pretty cool to know that derived public keys are identical for both private and public derivation methods.
Regarding the Lucid js library also follows similar |
I think the coverage test is failing since we are now including bip32.py module in the coverage report. |
…anguage list into a constant set
…eakout and return statements
Added a bit more refactoring commits as well.
|
mnemonic
Python package generates an entropy value inbytearray
type.However,
HDWallet.entropy
class is expecting a string value and it is used as a string throughout the entire bip32.py module codebase.This merge request explicitly converts generated entropy value as a string value to be consistent with the original implementer's intention.