cosmos / ledger-cosmos-obsolete

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

Updated json parser to work with sdk.StdSignMsg format. #39

Closed brejski closed 6 years ago

brejski commented 6 years ago

This PR enables simple parsing of the sdk.StdSignMsg json message from the cosmos-sdk. Before we only supported parsing of the sdk.Msg transaction message which was part of the StdSignMsg.

In order to parse StdSignMsg messages we need to use one of the new APIs from the ledger-goclient library i.e. SignSECP256K1_StdSignMsg and SignED25519_StdSignMsg.

Currently parser does not decode "fee" nor "base_msg" fields that are part of the StdSignMsg. They are Base64 encoded and as such are currently displayed in the UI.