working prototype
Transaction serialization