Skip to content

Ascii values of hex characters #4

@aquirin

Description

@aquirin

With some version of Python the following checks return always False, resulting in few addresses being decoded:

(in output.py)

if len(hex_data) == 65 and hex_data[0] == 4:
if len(hex_data) == 33 and hex_data[0] in [2, 3]:

I would suggest doing this:

if len(hex_data) == 65 and ord(hex_data[0]) == 4:
if len(hex_data) == 33 and ord(hex_data[0]) in [2, 3]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions