Closed brejski closed 6 years ago
Consolidating issue https://github.com/cosmos/ledger-cosmos/issues/40 here
Linking to PR https://github.com/cosmos/ledger-cosmos/pull/77
Linking to PR https://github.com/cosmos/ledger-cosmos/pull/79
I guess that after #81 #80 we can close this ticket? @brejski @cwgoes
Yes; I think we can close this.
Yes
According to the json parsing specification (from TXSPEC.md):
The Ledger device MUST validate that supplied JSON is valid. Our JSON specification is a subset of RFC 7159 - invalid RFC 7159 JSON is invalid Ledger JSON, but not all valid RFC 7159 JSON is valid Ledger JSON.
We add the following two rules:
Currently only basic validation is implemented based on the jsmn library. We either need to update jsmn or add extra validation layer in the app along with negative tests that demonstrate malformed messages.