Проверка подписи не удалась; пожалуйста, проверьте номер счета и идентификатор цепочки: неавторизованоC#

Место общения программистов C#
Ответить Пред. темаСлед. тема
Anonymous
 Проверка подписи не удалась; пожалуйста, проверьте номер счета и идентификатор цепочки: неавторизовано

Сообщение Anonymous »


You don't want to know how many hours I've spent trying to figure this one out.

I'm trying to send a broadcast to the Cosmos Blockchain, via the Terra Pisco/Rebel1 Api.

LUNA2: https://pisco-lcd.terra.dev/swagger/#/

LUNC: https://rebel1.grouptwo.org/swagger/#/

When I run the simulation Api, the transaction works perfectly. However when I run a transaction just via the standard api, it fails with a "signature verification failed" error. This issue is related to the signature being passed to Cosmos not containing the correct Chain-Id or Sequence Number. However I've confirmed that the base64 has it. And all the payloads being sent are correct (Protobuf & Rest JSON), according to the Cosmos SDK support team.

I have generated an issue in the cosmos-sdk repo below (it contains all the details, models, dtos, protos, I pass cosmos): https://github.com/cosmos/cosmos-sdk/issues/14789
  • I've verified the Protobuf data according to terra-money's terra.js library https://github.com/terra-money/terra.js. And the data looks correct.
  • I've also confirmed that the signature contains the correct Chain-Id & Sequence number.

This issue is related to the C# SDK that I'm currently building. It allows users to broadcast Tx data to Terra (Cosmos). Here's the link, if you want to generate a PR:

https://github.com/TerraMystics/terra-sharp


Источник: https://stackoverflow.com/questions/752 ... -id-unauth
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «C#»