Implementation of Bitcoin script parsing and evaluation in Haskell