Skip to content
Cosmopediaby Unity Nodes
DiscussionsCosmos-SDKMultiple messages transaction with a few membersForum ↗

Multiple messages transaction with a few members

Cosmos-SDK4 posts1,872 viewsLast activity Dec 2021
FU
fulldiverOP
Dec 2021

Hello, Cosmos community! I have an interesting situation, I need to implement some mechanism over cosmos-sdk, and that sounds like: • Alice want to send something that she has to Bob and take some penny back from Bob • Alice could make a multiple messages transaction sign it and send it to Bob. • Bob would take that semi-signed partial request, inspect all the things inside the request. And if all is ok Bob could sign that request and send it to the blockchain And that’s all, just three steps There is a pseudo-code for step 2 ``` { "body": { "messages": [ { "@type": "send-something-message", "sender": "alice-address", "recipient": "bob-address" }, { "@type": "send-penny-message", "sender": "bob-address", "recipient": "alice-address" } ] }, "auth_info": { "signer_infos": [ { "public_key": { "@type": "/cosmos.crypto.secp256k1.PubKey", "key": "alice-public-key" }, "mode_info": {…

Excerpt (1183 of 2913 characters). Read the whole post on the forum ↗

UD
uditvira
Dec 2021

I think you should ask in the Cosmos Developers discord

FU
fulldiver
Dec 2021

don’t think so, but I will wait for the answer here and in the discord, thank you :slight_smile:

FU
fulldiver
Dec 2021

github.com/cosmos/cosmos-sdk Unable to make 2 messages transaction with 2 signers opened 02:10PM - 27 Dec 21 UTC fulldiver-ilya <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ v … ✰ Thanks for opening an issue! ✰ v Before smashing the submit button please review the template. v Please also ensure that this is not a duplicate issue :) ☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --> <!-- IMPORTANT: Prior to opening a bug report, check if it affects one of the core modules and if its elegible for a bug bounty on `SECURITY.md`. Bugs that are not submitted through the appropriate channels won't receive any bounty. --> ## Summary of Bug I want to implement 2 signers 2 messages transaction from a client via gRPC, but I always receive the same error: ` signature verification failed; please verify account number (x) and chain-id (y): unauthorized ` `x` — is an account number of transaction composer and he is the first signer `y` — is a correct chain-id of my node ## Version cosmos-sdk v0.44.2 ## Steps to Reproduce ### The flow is pretty simple: **Alice** is a first signer…

Excerpt (1198 of 9068 characters). Read the whole post on the forum ↗

← Back to Discussions