trezor-firmware
trezor-firmware copied to clipboard
DO NOT MERGE - Review only - Handling instruction grammar outside of device
Raising PR instead of an issue to summarise initial code changes required to handle the Solana instruction parsing outside of the wallet. Currently the instruction schema is a big cost on the flash space. The idea here is to send the instruction schema along with the transaction to save on storage.
We introduce an initial draft of a message definition that will be used to send the instruction. And subsequent code changes that this endeavour might ensue.
TODOs in the relevant files (*.py. *.rs are incorrectly included from another PR) highlight the main changes required.
sign_tx.py -> instructions are as an embedded message in the additional info section of the transaction. The Transaction class needs to be dated in favour of the message generated SolanaInstruction class. get_single_instruction() was just being drafted for demo testing.
layout.py -> Needs a PropertyTemplate file for now to start with.