Skip to content
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

<redeem_script> length should be encoded to varint. #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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