go-ethereum/parser.py

6 lines
112 B
Python
Raw Normal View History

2013-12-19 12:38:09 -06:00
import rlp
def parse(inp):
if inp[0] == '\x00':
return { "type": "transaction", "data": rlp.parse(