-
Notifications
You must be signed in to change notification settings - Fork 75
Efficient script matching #32
Copy link
Copy link
Open
Labels
hacktoberfestContribute to our project and win prizes! https://hacktoberfest.digitalocean.com/Contribute to our project and win prizes! https://hacktoberfest.digitalocean.com/help wanted
Metadata
Metadata
Assignees
Labels
hacktoberfestContribute to our project and win prizes! https://hacktoberfest.digitalocean.com/Contribute to our project and win prizes! https://hacktoberfest.digitalocean.com/help wanted
Type
Fields
Give feedbackNo fields configured for issues without a type.
At the moment
ScriptBuildertries to match scripts by running theirverify()method, which in turn tries to both match a script template and return the pushed values (e.g. public key hash, script hash and so on). It would be useful to have a faster way to match script types, for instance having scripts declare fast matching conditions (e.g. P2SH must start withHASH160, followed by a 20-byte push operation, followed byEQUAL) to be used for template matching andverify()logics can be used to return the pushed data once the fast matching succeeds.To be clear, an example of P2SH efficient matching might be: