-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[textual]: Allow offline signing #15864
Comments
why is this required? its not required with the current signing methods |
thinking through the use cases of offline signing i can only think multisig but even then youcould use a node. As long as there is a way to sign and not broadcast at the same time i think its chill |
What do guys think of doing the following: create a new
Then at flags processing time the function can be properly injected |
ok, so regarding the toml config to contain cosmos-sdk/simapp/simd/cmd/config.go Lines 30 to 39 in 4b8be25
the Config struct is being composed to include GasConfig struct which is not present in the DefaultClientConfigTemplate .
I think that modifying the default toml and Config would be a cleaner way to include denoms metadata (maybe backwards compatibilities issues?).... but I'm not sure since the |
This is done as an example on how chains can extend themselves the client.toml, like they can do for the app.toml. As you can see the logic is in simapp, so it is chain specific. If we go the toml way, it should be standard for all chains, so it should indeed be added in the default template. |
What's the status on this? cc @raynaudoe |
There was no consensus on which data should be available for offline signing besides denoms. |
closing as wont fix |
Summary
Signmode textual must be able to sign offline.
Problem Definition
Sign mode textual requires a GRPC connection or a bank keeper to query a denom's metadata in order to display it correctly; none of which will/should be available if
--offline
is being passed.Proposal
Given that denoms metadata is something that doesn't change often, we can allow the signer to provide the denom metadata when doing an offline signature. This can be done by storing the response of x/bank's
DenomsMetadata
in a json and then passing that to the CLI through a flag.The text was updated successfully, but these errors were encountered: