Currently, when signing a message, the message will first be sent to the device completely and then presented for review as a whole before being signed. The problem is that the buffer on the device that holds the message has limited size - around 4Kb, so the message cannot be bigger than that. On the other hand, only the message hash is signed in reality, so the message could be sent in portions and presented for review in portions as well, which would allow signing messages of arbitrary sizes.
Note: there is already a lower-level chunking mechanism, but it's better not to expose it to the higher-level request handling.
Currently, when signing a message, the message will first be sent to the device completely and then presented for review as a whole before being signed. The problem is that the buffer on the device that holds the message has limited size - around 4Kb, so the message cannot be bigger than that. On the other hand, only the message hash is signed in reality, so the message could be sent in portions and presented for review in portions as well, which would allow signing messages of arbitrary sizes.
Note: there is already a lower-level chunking mechanism, but it's better not to expose it to the higher-level request handling.