Skip to content

Conversation

@iworkist
Copy link

<redeem_script> element can be 520bytes.
so, the length should be encoded to varint but it is encoded to 1byte int.
and it decodes 1byte int to varint in the parse function below.

script.py#L78
def parse(cls, s):
# get the length of the entire field
length = read_varint(s)

so, the length should be encoded varint but it is encoded 1byte.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant