Script Abuse Potential?



Summary:

A user on the bitcoin-dev mailing list raised concern over a potential attack vector using a specific pk_script. The script in question contains repeated op_2dup commands and ends with op_hash160, op_equalverify, and op_checksig. While it is still valid, the maximum size of a script element is 520 bytes, limiting the damage that could be done to roughly 10 MB. However, the real concern lies with op_dup/op_cat style bugs that could cause out of memory errors.


Updated on: 2023-06-11T21:02:30.945578+00:00