-
Notifications
You must be signed in to change notification settings - Fork 345
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
Some CosmJs-Types Txs Don't Work (e.g. Unjail) #1417
Comments
Found a related issues for #1 - #1273 , #1097 (comment) |
tangentially related - #837 |
Similar issues |
Thanks a lot for bringing this up. This looks good as far as I can tell. However, it looks like the field is renamed to just
Would you submit your Amino converter as an implementation for https://github.com/cosmos/cosmjs/blob/main/packages/stargate/src/modules/slashing/aminomessages.ts#L21-L23 and fix
Because multisigs work fundamentally different in sign mode direct. See #1400 for a proof of concept how this can be done. For now I'd consider it unsupported in CosmJS.
secp256k1 signatures are not unique. I.e. different signing libraries can produce different signatures what are all valid.
Yeah, this was changed recently to a hardcoded mnemonic: https://github.com/cosmos/cosmjs/blob/v0.31.0/scripts/simapp44/setup.sh#L26-L27
👍 but right now there is only one validator running the test chains. If this gets jailed, the chain probably halts. |
This implementation works well on multisig unjail
|
A simple Unjail doesn't work, even when I add a custom Registry and AminoConverter
However, some txs do work, like msgEdit
Here is a gist of my minimal working example
Possibly related:
Secp256k1HdWallet
withDirectSecp256k1HdWallet
breaks ittoBase64(signature)
return a different value than this cli command? I would expect them to be the same:osmosisd tx sign unjail_unsigned.json --multisig=osmo1wqx3uvz9xry82jy2suppg57mpeg50dwdqhhwtq --from fourth --chain-id osmo-test-5 --node=https://rpc.osmotest5.osmosis.zone:443 --output-document signed.json && cat signed.json | jq '.signatures[0].data.single.signature'
The text was updated successfully, but these errors were encountered: