clarity-lang / reference

The Clarity Reference
146 stars 34 forks source link

Add builtins for Bitcoin transaction processing #71

Open obycode opened 1 year ago

obycode commented 1 year ago

Should Clarity have built-in operators for doing some of the work that the bitcoin-clarity library does now?

friedger commented 1 year ago

What is missing language wise? Like reverse buffer, calculate double hashes?

Otherwise, optimisation could be done in stacks node?

obycode commented 1 year ago

I'm not sure, but I'm glad you're interested because I think you'd be one of the best to answer that! The topic came up in the sprint sync meeting, so I wanted to get the discussion started with an issue.

It will be easier to optimize in the stacks-node if the operations are defined at a higher level, then implemented most optimally in the node.

friedger commented 1 year ago

Probably we would need to define some kind of language extensions, If we would want to have something like was-tx-mined