Support multi signers in `@cosm/stargate`
See original GitHub issueThe current sign()
function of SigningStargateClient
accepts only one signerAddress
, but Cosmos basically support multi-signers.
https://github.com/cosmos/cosmjs/blob/06fbc34f72f12c30a396c3ca296f80eca9fa60b0/packages/stargate/src/signingstargateclient.ts#L301-L307
I’d like to suggest to create a new signWithMultiSigners()
function that looks like below:
public async signWithMultiSigners(
signerAddresses: string[],
messages: readonly EncodeObject[],
fee: StdFee,
memo: string,
explicitSignerDatas?: SignerData[],
): Promise<TxRaw>
I’ve already implemented this function by following the Cosmos’ guide, so that I can use it for my Cosmos-based blockchain. I think this is widely useful. If you think it’s reasonable, I’m ready to open a PR 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Compact Multi-Signatures for Smaller Blockchains
Abstract. We construct new multi-signature schemes that provide new functionality. Our schemes are designed to reduce the size of the Bitcoin.
Read more >Cryptocurrency Transactions: Multi-Signature Arrangements ...
In this arrangement, at least two signatures are needed to approve Bitcoin and similar electronic transactions between three addresses. For instance, a Bitcoin ......
Read more >Multiparty Approval When MultiSig Is NOT Supported! - Sepior
So, there is no dependency on the blockchain to natively support multiple signatures or special smart contracts. Threshold Signatures can enable ...
Read more >Messing Around with Multi-Sig - Developers Blog - Stellar.org
With native support for multisig, it's really straightforward to add another signer to an account. We leverage the SetOptions operation, e.g. 2.
Read more >Multi-Signing - XRPL.org
You can control how many signatures are needed, in which combinations, by using the Signer Weight and Quorum settings in the list. (Updated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Re-opening as the request is very valid. We can implement a solution that includes the use case described here but supports a multi-machine setup ad well. Many of the changes from #838 make sense, specially looking at the signture of
makeAuthInfoBytes
.Yeah. That is an important first step, as you said. Thank you for handling this issue.