summa-tx / riemann

rapid prototyping transaction toolbox for Bitcoin-style chains 🎈 🎈
Other
114 stars 19 forks source link

Add Script builder #99

Open gakonst opened 4 years ago

gakonst commented 4 years ago

It'd be nice if instead of having to write scripts as strings manually, I could have a builder object which would expose a type-safe (as much as typed-python allows) interface for creating scripts.

Example from rust-bitcoin:

prestwich commented 4 years ago

I like the pattern, but don't have an urgent need. Existing tools can produce (almost) any Script