Add function to deserialize transaction `binary -> json`
FYI: @kmochocki @bwrona @mtyszczak
Currently wax provides serialize_transaction which is used for getting a binary serialized transaction from the transaction json (json passed as bytearray).
We're using it in the Clive like:
def serialize_transaction(transaction: Transaction) -> bytes:
result = wax.serialize_transaction(__as_binary_json(transaction))
__validate_wax_response(result)
return result.result
so we can save our Transaction model to a transaction.bin file.
It should be possible to convert from the other side. binary -> json. It's required for Clive to create a Transaction model from the transaction.bin file.