MinaProtocol / mina

Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
https://minaprotocol.com
Apache License 2.0
1.99k stars 527 forks source link

sendRosettaTransaction broken (offline sign by Ledger and send by mina) in 1.3.0 beta 4 #10271

Closed p-shahi closed 2 weeks ago

p-shahi commented 2 years ago

Preliminary Checks

Description

Anyone having issues with Ledger wallet signatures being rejected by the node on 1.3.0 beta 4?
I don't send transactions often, but getting a new error:
 Error: Transaction could not be entered into the pool: This transaction had an invalid signature (in ["sendRosettaTransaction"])
For me, broadcasting to the graphql mutation is working okay, just CLI is broken. (I am using different signers for graphql (js lib) vs. CLI (ledger)

Steps to Reproduce

Sign with ledger wallet and try to send tx with 1.3.0 beta 4

Expected Result

Successful sign and send

Actual Result

 Error: Transaction could not be entered into the pool: This transaction had an invalid signature (in ["sendRosettaTransaction"])

How frequently do you see this issue?

Always

What is the impact of this issue on your ability to run a node?

Low

Status

n/a

Additional information

No response

jrwashburn commented 2 years ago

Steps to reproduce: generate offline payment using ledger wallet, attempt to send transaction to the network using mina daemon.

mina_ledger_wallet send-payment --offline --network mainnet --nonce --fee ... etc.

from daemon, run mina advanced send-rosetta-transactions command, paste in signature from above, ctrl d to send daemon cli returns: Error: Transaction could not be entered into the pool: This transaction had an invalid signature (in ["sendRosettaTransaction"])

garethtdavies commented 2 years ago

This also breaks my current workflow - signing via the CLI ledger app and then broadcasting via GraphQL. I guess the workaround currently will be to use a wallet i.e. Auro/Clorio to send the transaction as they are unaffected.

p-shahi commented 2 years ago

fixed by https://github.com/jspada/ledger-app-mina/pull/22