├── .gitignore ├── MANIFEST.in ├── README.md ├── doc ├── DESIGN.md └── txscript.asciidoc ├── examples ├── README.md ├── builtin-functions.txscript ├── function.txscript ├── mark-invalid.txscript ├── p2ph-script.txscript ├── p2sh-scriptsig.txscript └── superscript-example.txscript ├── requirements.txt ├── setup.py ├── tools └── show-peephole-optimizers.py └── txsc ├── __init__.py ├── asm ├── __init__.py ├── asm_language.py └── asm_parser.py ├── btcscript.py ├── compiler.py ├── config.py ├── ir ├── __init__.py ├── formats.py ├── instructions.py ├── linear_context.py ├── linear_nodes.py ├── linear_optimizer.py ├── linear_visitor.py ├── structural_nodes.py ├── structural_optimizer.py └── structural_visitor.py ├── language.py ├── script_compiler.py ├── symbols.py ├── tests ├── __init__.py ├── test_asm.py ├── test_btcscript.py ├── test_compiler.py ├── test_custom_opcodes.py ├── test_examples.py ├── test_linear_context.py ├── test_linear_optimization.py ├── test_structural_ir.py ├── test_structural_optimization.py ├── test_symbol_table.py └── test_txscript.py ├── transformer.py └── txscript ├── __init__.py ├── lexer.py ├── script_parser.py ├── script_transformer.py └── txscript_language.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/.gitignore -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/README.md -------------------------------------------------------------------------------- /doc/DESIGN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/doc/DESIGN.md -------------------------------------------------------------------------------- /doc/txscript.asciidoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/doc/txscript.asciidoc -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/builtin-functions.txscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/examples/builtin-functions.txscript -------------------------------------------------------------------------------- /examples/function.txscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/examples/function.txscript -------------------------------------------------------------------------------- /examples/mark-invalid.txscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/examples/mark-invalid.txscript -------------------------------------------------------------------------------- /examples/p2ph-script.txscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/examples/p2ph-script.txscript -------------------------------------------------------------------------------- /examples/p2sh-scriptsig.txscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/examples/p2sh-scriptsig.txscript -------------------------------------------------------------------------------- /examples/superscript-example.txscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/examples/superscript-example.txscript -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | hexs>=1.1.0 2 | ply 3 | python-bitcoinlib 4 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/setup.py -------------------------------------------------------------------------------- /tools/show-peephole-optimizers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/tools/show-peephole-optimizers.py -------------------------------------------------------------------------------- /txsc/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /txsc/asm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/asm/__init__.py -------------------------------------------------------------------------------- /txsc/asm/asm_language.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/asm/asm_language.py -------------------------------------------------------------------------------- /txsc/asm/asm_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/asm/asm_parser.py -------------------------------------------------------------------------------- /txsc/btcscript.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/btcscript.py -------------------------------------------------------------------------------- /txsc/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/compiler.py -------------------------------------------------------------------------------- /txsc/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/config.py -------------------------------------------------------------------------------- /txsc/ir/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/__init__.py -------------------------------------------------------------------------------- /txsc/ir/formats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/formats.py -------------------------------------------------------------------------------- /txsc/ir/instructions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/instructions.py -------------------------------------------------------------------------------- /txsc/ir/linear_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/linear_context.py -------------------------------------------------------------------------------- /txsc/ir/linear_nodes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/linear_nodes.py -------------------------------------------------------------------------------- /txsc/ir/linear_optimizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/linear_optimizer.py -------------------------------------------------------------------------------- /txsc/ir/linear_visitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/linear_visitor.py -------------------------------------------------------------------------------- /txsc/ir/structural_nodes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/structural_nodes.py -------------------------------------------------------------------------------- /txsc/ir/structural_optimizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/structural_optimizer.py -------------------------------------------------------------------------------- /txsc/ir/structural_visitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/ir/structural_visitor.py -------------------------------------------------------------------------------- /txsc/language.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/language.py -------------------------------------------------------------------------------- /txsc/script_compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/script_compiler.py -------------------------------------------------------------------------------- /txsc/symbols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/symbols.py -------------------------------------------------------------------------------- /txsc/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/__init__.py -------------------------------------------------------------------------------- /txsc/tests/test_asm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_asm.py -------------------------------------------------------------------------------- /txsc/tests/test_btcscript.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_btcscript.py -------------------------------------------------------------------------------- /txsc/tests/test_compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_compiler.py -------------------------------------------------------------------------------- /txsc/tests/test_custom_opcodes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_custom_opcodes.py -------------------------------------------------------------------------------- /txsc/tests/test_examples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_examples.py -------------------------------------------------------------------------------- /txsc/tests/test_linear_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_linear_context.py -------------------------------------------------------------------------------- /txsc/tests/test_linear_optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_linear_optimization.py -------------------------------------------------------------------------------- /txsc/tests/test_structural_ir.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_structural_ir.py -------------------------------------------------------------------------------- /txsc/tests/test_structural_optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_structural_optimization.py -------------------------------------------------------------------------------- /txsc/tests/test_symbol_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_symbol_table.py -------------------------------------------------------------------------------- /txsc/tests/test_txscript.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/tests/test_txscript.py -------------------------------------------------------------------------------- /txsc/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/transformer.py -------------------------------------------------------------------------------- /txsc/txscript/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/txscript/__init__.py -------------------------------------------------------------------------------- /txsc/txscript/lexer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/txscript/lexer.py -------------------------------------------------------------------------------- /txsc/txscript/script_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/txscript/script_parser.py -------------------------------------------------------------------------------- /txsc/txscript/script_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/txscript/script_transformer.py -------------------------------------------------------------------------------- /txsc/txscript/txscript_language.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kefkius/txsc/HEAD/txsc/txscript/txscript_language.py --------------------------------------------------------------------------------