-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SIGN_MODE_DIRECT #6216
Conversation
…nd Fee -> FeeI
👋 Thanks for creating a PR! Before we can merge this PR, please make sure that all the following items have been For contributor use:
For admin use:
Thank you for your contribution to the Cosmos-SDK! 🚀 |
Is this signing proto3 encoded bytes? Signing should be on json bytes, proto bytes don't let you inspect data before signing them, as you can in the ledger app. The information encoded in fields is ambiguous when protobuf binary encoded. You can't even tell if a number you're signing is negative or positive. Enforcing a canonical JSON format as the blockchain signing standard helps signing tools (like ledger apps) stay intelligent. Even if say the ledger app doesn't know what the tx means, it can show all the field names and values for the signer to inspect, as an advanced option. Signing options introduces more complexity in the SDK, and more surface area for attack. Another example... batch-signing tools should operate on lines of JSON txs (or sign-docs) in a file. You want the file of batch of txs to be inspected and reviewed as a static representation, then you want the tool to sign each line. Is there a discussion on why this is needed? |
We had extensive, extensive discussions on github, discord and zoom to arrive at the current design. Please read through #6078 for context. |
…ronc/6213-sign-mode
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
* refactor auths broadcast cmd in alignment with #6216 * add TxResponse proto definition, and related refactoring * re-run make proto-gen, updating staking.pb.go * cleanup TxResponse tests to handle nil return values * properly handle nil Tx value in TxResponse's implementation of UnpackInterfaces Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* refactor auths broadcast cmd in alignment with cosmos#6216 * add TxResponse proto definition, and related refactoring * re-run make proto-gen, updating staking.pb.go * cleanup TxResponse tests to handle nil return values * properly handle nil Tx value in TxResponse's implementation of UnpackInterfaces Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
ref: #6213