vacuumlabs/trezor-firmware

transaction with inline-datum and reference script fails

Closed this issue · 1 comments

from vacuumlabs/cardano-hw-cli#127 (comment)

failed transaction

  • Tried to send a transaction from Trezor with --tx-out-inline-datum-value and --tx-out-reference-script-file.
    HW-CLI fails with Tx serialization mismatch after the tx was signed on the Trezor device.
  • Same transaction succeeds with a Ledger device.

versions used

  • Trezor model-t firmware 2.5.3 - commit b9e2ca9
  • ledger-app-cardano-shelley 5.0.0 - commit b33a914
  • cardano-hw-cli 1.11.0-rc2 - commit 1bef514
  • cardano-node 1.35.3-rc1 - commit 950c4e2
  • cardano-cli 1.35.3-rc1 - commit 950c4e2

transaction format

  • BabbageEra
  • Ledger Cddl Format
  • All transactions were run thru the transaction transform --tx-file command before witness collection or signing to sort out any possible cardano-cli related canonical order issues

failed tx on Trezor

{
    "type": "Unwitnessed Tx BabbageEra",
    "description": "Ledger Cddl Format",
    "cborHex": "84a400818258207463e4732bad7b42f545c9f0e9bce8e03bed3c3243f3dd76f7e668ff9b6533d7000182a300581d70dfcad2d5ae0c192e2dbcc1fab7783d13f862a06fbc59bfc73244576b011a004c4b40028201d818525161746164612d73706f2d73637269707473a300583900553eef4a0e12ff6a0729d8009a6c89b03d4e206561d631e493654e8aa6b791a81822aa986e38a8270f2917d9aa93bd3577aad828b37c148a011a00498f7b03d8185846820258425840010000332233322222253353004333573466ebc00c00801801440204c98d4c01ccd5ce2481094e6f7420457175616c0000849848800848800480044800480041021a0002bbc5031a000a65e6a0f5f6"
}

succeeded tx on Ledger

{
    "type": "Unwitnessed Tx BabbageEra",
    "description": "Ledger Cddl Format",
    "cborHex": "84a40081825820ac4a2372f8aaa7a71277f016d3013a8b0ad28fffd0eed4b58ec7a4d919586640000182a300581d70dfcad2d5ae0c192e2dbcc1fab7783d13f862a06fbc59bfc73244576b011a004c4b40028201d818525161746164612d73706f2d73637269707473a30058390074976c54afaf444f7cd499bd8519aac6592b13b22b9d5817f0da5c5203d205532089ad2f7816892e2ef42849b7b52788e41b3fd43a6e01cf011a352ca9ec03d8185846820258425840010000332233322222253353004333573466ebc00c00801801440204c98d4c01ccd5ce2481094e6f7420457175616c0000849848800848800480044800480041021a0002bbc5031a000a66faa0f5f6"
}

Bug is caused by Cardano HW CLI - vacuumlabs/cardano-hw-cli#127 (comment).