Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support multi signers in `@cosm/stargate`

See original GitHub issue

The current sign() function of SigningStargateClient accepts only one signerAddress, but Cosmos basically support multi-signers.

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:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

webmaster128commented, Jul 12, 2021

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.

youngjoon-leecommented, Jul 27, 2021

Yeah. That is an important first step, as you said. Thank you for handling this issue.

Read more comments on GitHub >

github_iconTop 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 -
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 -
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found