@@ -0,0 +1,1079 @@
+%0Aclass Interpreter(object):%0A%0A    def __init__(self):%0A        self.initialize()%0A%0A    def initialize(self):%0A        self.stack = %5B%5D%0A        self.altstack = %5B%5D%0A        self.pc = 0%0A        self.pbegincodehash = 0%0A        self.nop_count = 0%0A        self.vf_exec = %5B%5D%0A        self.errstr = ''%0A        self.flags = 0%0A%0A%0A    %22%22%22%0A    Verifies a Script by executing it and returns true if it is valid.%0A    This function needs to be provided with the scriptSig and the scriptPubkey%0A    separately.%0A%0A    :param script_sig: the script's first part (corresponding to the tx input)%0A    :param script_pubkey: the script's last part (corresponding to the tx output)%0A    :param tx: the transaction containing the script_sig in one input (used to%0A        check signature validity for some opcodes like OP_CHECKSIG)%0A    :param nin: index of the transaction input containing the scriptSig verified.%0A    :param flags: evaluation flags. See Interpreter.SCRIPT_* constants%0A%0A    Translated from bitcoind's VerifyScript%0A    %22%22%22%0A    def verify(self, script_sig, script_pubkey, tx, nin, flags):%0A        pass%0A

add script interpreter class