programmingbitcoin
programmingbitcoin copied to clipboard
<redeem_script> length should be encoded to varint.
<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)