Refactoring crypto base changes #1806
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-04#1806
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "crypto-sort"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello!
This is a meaningful subset of the changes in my branches
compatibility
,crypto
,flake8*
. Starting the refactoring from separation of protocol tests, crypto tests and the pyelliptic tests (added more).Please make the changes and review comments.
I tested it, and the comparison between
int
andbytes
doesn't work, at least in python2. It should probably beI think this test is missing in the new code.
perhaps
perhaps also
Oh, I seehost[1]
. In py2 it will be bytes. Perhaps I missed some sample in thetest_checkIPv4Address()
This part looks like
TestCrypto.test_hash_string()
above. The rest part is inTestAddresses
.test_decode()
andtest_encode()
.yes, in py2
host[0]
will be intOK, why don't just writewhat about IPv4 254.128.0.0?if host[:2] == b'\xFE\x80'
andAnd also 169.254.0.0/16
Also
test_checkIPv6Address()
should probably fail because the first sample is reserved for documentation:https://www.ripe.net/participate/member-support/lir-basics/ipv6_reference_card.pdf
Ok I missed that, looks ok.