Commit 51cadfc
committed
Merge #743: feat: actually check push data bytes
e2e9281 feat: check max script sig push (ChrisCho-H)
Pull request description:
Miniscript witness item can be maximum 72 bytes(except length prefix), but it only throws error when it's >= 4294967296 bytes as only dependant on `PushBytesError` from bitcoin crate. I've changed the logic to check the maximum length internally so that actual check can be done.
ACKs for top commit:
apoelstra:
ACK e2e9281 successfully ran local tests; thanks for iterating!
Tree-SHA512: 7b75bc3c72c29377d0f188d6d3826f740554075b5cdc73e2a7addb1b41bf74b695cc2f97a4c025dea4176f90b0eef54577a94a032c80ec5e9bdbcb23ef98493e1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
0 commit comments