cosmjs icon indicating copy to clipboard operation
cosmjs copied to clipboard

Multisignature in fail in Direct Sign Mode

Open akkien opened this issue 3 years ago • 3 comments

I create a new module using Ignite CLI that requires multi-signature. My module only has direct message types. So I copy file https://github.com/cosmos/cosmjs/blob/main/packages/stargate/src/multisignature.ts#L58 and create my own makeMultisignedTx with SignMode.SIGN_MODE_DIRECT, but it failed.

Right now I plan to create aminoType for my new message.

Is it possible to support multisignedTx in SIGN_MODE_DIRECT? Do you have a plan to add this into cosmjs?

akkien avatar Sep 23 '22 08:09 akkien

Sounds like a good addition. It is Amino JSON only right now because you need to know the sign mode of each signer in advance and this is typically used for supporting Ledger signing.

webmaster128 avatar Sep 23 '22 09:09 webmaster128

Thank you for your answer.

akkien avatar Sep 23 '22 10:09 akkien

Feel free to keep this open. We can add it if there are users who need it.

webmaster128 avatar Sep 23 '22 10:09 webmaster128