Skip to content

Fix/output mapping on hw #1618

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

Merged
merged 3 commits into from
Apr 17, 2025
Merged

Fix/output mapping on hw #1618

merged 3 commits into from
Apr 17, 2025

Conversation

AngelCastilloB
Copy link
Member

Context

The change introduced in #1616 was not completely accurate. It assumes all otuputs on the transaction will be encoded in the same format, but this is not necesarily the case, Legacy format is more compact, dApps can take this to their advantage and use legacy encoding for outputs that do not need babbage fields, reducing transaction size. So we should assume outputs could (and probably will) be encoded using different formats.

Proposed Solution

check raw CBOR of all outputs and determined their format.

iccicci
iccicci previously approved these changes Apr 16, 2025
Copy link
Collaborator

@iccicci iccicci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from a couple of side comments (probably outside of the scope of this PR),
LGTM!

Copy link
Member

@mkazlauskas mkazlauskas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 💪

@AngelCastilloB AngelCastilloB force-pushed the fix/output-mapping-on-hw branch from 3687665 to ed91155 Compare April 17, 2025 11:58
@AngelCastilloB AngelCastilloB merged commit ac42650 into master Apr 17, 2025
9 of 10 checks passed
@AngelCastilloB AngelCastilloB deleted the fix/output-mapping-on-hw branch April 17, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants