Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some transactions fail on Trezor #196

Closed
SynthLuvr opened this issue Aug 10, 2024 · 5 comments
Closed

Some transactions fail on Trezor #196

SynthLuvr opened this issue Aug 10, 2024 · 5 comments
Assignees

Comments

@SynthLuvr
Copy link

image

It's believed this is caused because lucid-evolution doesn't conform to CIP-21, specifically:

The keys in every map must be sorted from lowest value to highest.

@SynthLuvr
Copy link
Author

Confirmed that if transactions are transformed via cardano-hw-cli, then they work.

It is due to lucid-evolution not conforming to CIP-21. The workaround I have:

  1. Build transaction via lucid-evolution
  2. Complete tx with empty signature
  3. Convert to CBOR
  4. Transform CBOR via cardano-hw-cli
  5. Pass transformed CBOR back into lucid via fromTx
  6. Continue as per usual

@solidsnakedev
Copy link
Contributor

Thanks for the report will look into it

@solidsnakedev solidsnakedev self-assigned this Aug 11, 2024
@SynthLuvr
Copy link
Author

SynthLuvr commented Aug 31, 2024

Beginning with lucid-evolution 0.3.10, due to #236, transactions with datums are no longer compatible with cardano-hw-cli. This means that lucid-evolution is now mostly unusable with some hardware wallets

@SynthLuvr
Copy link
Author

The transformation by cardano-hw-cli is successful, but the produced CBOR is invalid:

Transaction::from_bytes: Deserialization failed in Transaction.witness_set.TransactionWitnessSet.plutus_datums.NonemptySet.PlutusData.ConstrPlutusData.ConstrPlutusData.fields.PlutusData.Bytes because: Out of range: 203 - must be in range 0 - 64

Opened vacuumlabs/cardano-hw-cli#179

@solidsnakedev
Copy link
Contributor

solidsnakedev commented Sep 20, 2024

@github-project-automation github-project-automation bot moved this from Todo to Done in Lucid Evolution Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants