ElementsProject / libwally-core

Useful primitives for wallets
Other
281 stars 135 forks source link

bytes_len parameter in wally_addr_segwit_from_bytes function #400

Closed mengguang closed 1 year ago

mengguang commented 1 year ago

https://github.com/ElementsProject/libwally-core/blob/ff4c31dedda13b2bbec6f738a9dcd92ae4165173/include/wally_address.h#L56 bytes_len should be HASH160_LEN + 2 or SHA256_LEN +2 , because bytes include version and opcode.

jgriffiths commented 1 year ago

Fixed, thanks for reporting!