Skip to content

Implement stateful message signing #13

Description

@ImplOfAnImpl

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions