primitives: Simplify and optimize witness decoder
This commit fixes a denial-of-service (DoS) weakness in how the rust-bitcoin library decodes Bitcoin transaction witness data. Previously, an attacker could send only about 10 bytes of data and trick the decoder into reserving 16 MB of mem…
4e780508by jrakibi+32−981 file