programmingbitcoin icon indicating copy to clipboard operation
programmingbitcoin copied to clipboard

<redeem_script> length should be encoded to varint.

Open iworkist opened this issue 5 years ago • 0 comments

<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)

iworkist avatar Mar 11 '20 13:03 iworkist