Skip to content

Commit 17e3547

Browse files
darosiorsipa
andcommitted
qa: add a fuzz target generating random nodes from a binary encoding
This is a "dumb" way of randomly generating a Miniscript node from fuzzer input. It defines a strict binary encoding and will always generate a node defined from the encoding without "helping" to create valid nodes. It will cut through as soon as it encounters an invalid fragment so hopefully the fuzzer can tend to learn the encoding and generate valid nodes with a higher probability. On a valid generated node a number of invariants are checked, especially around the satisfactions and testing them against the Script interpreter. The node generation and testing is modular in order to later introduce other ways to generate nodes from fuzzer inputs with minimal code. Co-Authored-By: Pieter Wuille <[email protected]>
1 parent 611e125 commit 17e3547

File tree

1 file changed

+447
-3
lines changed

1 file changed

+447
-3
lines changed

0 commit comments

Comments
 (0)