ledger-dotnet-api icon indicating copy to clipboard operation
ledger-dotnet-api copied to clipboard

Signing tx with 3+ outputs fails

Open ferib opened this issue 2 years ago • 0 comments

Hi, I forked the project and modified the CanSignTransactionStandardModeConcurrently in NanoSTests to have 3 outputs.

In test CanSignMultipleTransactionOutputs at https://github.com/ferib/ledger-dotnet-api/commit/8440518fc786e344b9d82e0bd316fd6c301c5bd3

When I sign the transaction, I see my Ledger X device prompt the suspicious path a couple of times, but that's it. I do not get any prompt to verify/sign each input & output. This problem only seems to happen when the output is 3 or more. e.g.:

// NOTE: having 3+ will promt for suspicious path, but won't sign anything :( 
            spending.Outputs.Add(new TxOut(Money.Coins(1m), BitcoinAddress.Create("bc1qc8h9tmkejfzzky79euxx5acmv9xthmcnk9df0m", Network.Main)));
            spending.Outputs.Add(new TxOut(Money.Coins(1m), BitcoinAddress.Create("bc1qve2w630azhahrhtmu047prnjjzxy2rymtd06na", Network.Main)));
            spending.Outputs.Add(new TxOut(Money.Coins(1m), BitcoinAddress.Create("bc1qdj59eexd2ggf4qa7u4n3fx9anurs5ad92d2jp3", Network.Main)));

When I comment some out, it all works fine

// NOTE: having 3+ will promt for suspicious path, but won't sign anything :( 
           spending.Outputs.Add(new TxOut(Money.Coins(1m), BitcoinAddress.Create("bc1qc8h9tmkejfzzky79euxx5acmv9xthmcnk9df0m", Network.Main)));
           //spending.Outputs.Add(new TxOut(Money.Coins(1m), BitcoinAddress.Create("bc1qve2w630azhahrhtmu047prnjjzxy2rymtd06na", Network.Main)));
           //spending.Outputs.Add(new TxOut(Money.Coins(1m), BitcoinAddress.Create("bc1qdj59eexd2ggf4qa7u4n3fx9anurs5ad92d2jp3", Network.Main)));

ferib avatar Oct 11 '23 12:10 ferib