-
Notifications
You must be signed in to change notification settings - Fork 217
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
Implement decode signed tx in shelley #1766
Implement decode signed tx in shelley #1766
Conversation
Right (Cardano.TxSignedShelley txValid) -> pure $ toSealed txValid | ||
Right (Cardano.TxSignedByron{}) -> | ||
Left $ ErrDecodeSignedTxWrongPayload | ||
"Detected Byron signed tx. Was expecting Shelley signed one!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that TxSignedByron
refers to Shelley transactions using Byron addresses (and requiring special Byron UTxO witnesses). They'd therefore be so-to-speak, valid in Shelley.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the full constructor looks like that :
TxSignedByron !ByronTxBody !ByteString !(Byron.Hash ByronTxBody) !(Vector Byron.TxInWitness)
which supports what you wrote. Probably will leave it as TO_DO at first step - and return to it soon. nevertheless, we do not support in wallet sending such transactions - @KtorZ right? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet because those witnesses aren't yet supported in the node (although they landed in the ledger recently). So we will. Soon.
There is no longer "Something went wrong" error. But I still cannot submit the transaction... I get:
To reproduce: Trying to re-play the tutorial on Shelley testnet:
and save key in XPRV env variable:
👇
I guess that is not related to this PR, but still... seems that |
7ef060c
to
046f4e6
Compare
@piotr-iohk this PR is about implementing |
bors try |
tryBuild succeeded |
porting existing code from Byron
No need for UTxOs that big for meaningful tests
431c608
to
63abe7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 wrapped up "TODO" and added support for Byron transaction decoding as well.
bors r+ |
Build succeeded |
Issue Number
#1758
Overview
decodeSignedTx
Comments