BitVM / rust-bitcoin-script

Allows creating and nesting bitcoin scripts for BitVM
MIT License
1 stars 1 forks source link

Support Hints #1

Open lucidLuckylee opened 1 month ago

lucidLuckylee commented 1 month ago

We should support hints directly in the StructuredScript struct so that the chunker can provide the correct hints as input for each chunk. This is actually very similar to https://github.com/BitVM/BitVM/issues/13 but instead of an OP_PUSH opcode we support OP_HINT.

lucidLuckylee commented 3 weeks ago

I am thinking it could look like this:

OP_HINT "identifier" and at runtime a dictionary for the identifiers and their values is provided. Ideally we also support non-static strings with something like OP_HINT { some_string}