Refactor for minimal lib (v2.0.0) #10
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces breaking changes and should be released as v2.0.0.
It achieves: firmware size reduction, and sometimes less RAM usage
Removed ~100 lines of code (in the end almost no reduction because of black and comments left from "deleted" code. Don't consider new lines from tests, poetry.lock, README.md and .pylintrc)
Summary of Changes
Code cleanup and simplification:
__eq__as it is used only by testsimport *from init files to void unnecessary imports and reduce RAM usagesrc/urtypes/cbor/decoder.pydecode_bytestring / decode_textstringpylintTesting and documentation:
test_output.pycase to show fixed bug onHDKey bip32_keywhen key has 32-bytesREADME.mdwith develop instructions.Tooling additions:
Added development dependencies:
pylintvultureblackChanges needed on Krux (imports need to be specific):
src/krux/pages/datum_tool.py:src/krux/psbt.py:src/krux/wallet.py:Change line
from urtypes import Bytesto: