cosmos / ledger-cosmos-obsolete

Ledger Nano S support for Tendermint/Cosmos
Apache License 2.0
42 stars 29 forks source link

Added support for writing long messages to nvram #63

Closed brejski closed 6 years ago

brejski commented 6 years ago

In PR we enable support for long messages, up to 16KB, by using nvram.

Introduced new buffering.c file that contains logic for writing to a default, small buffer (512 bytes) in ram and switching to nvram if data is bigger.

Added bunch of unit tests to validate buffering behavior plus integration test in goclient to test long messages directly in the ledger.