Skip to content

feat: include fee asset in TransactionId hash#2414

Open
crStiv wants to merge 13 commits into0xMiden:nextfrom
crStiv:feat-include-fee-asset-in-TransactionId-hash
Open

feat: include fee asset in TransactionId hash#2414
crStiv wants to merge 13 commits into0xMiden:nextfrom
crStiv:feat-include-fee-asset-in-TransactionId-hash

Conversation

@crStiv
Copy link
Contributor

@crStiv crStiv commented Feb 9, 2026

Include fee asset in TransactionId hash computation so it commits to entire TransactionHeader contents.

Closes #2348

crStiv and others added 6 commits February 9, 2026 10:21
Updated transaction ID computation to include fee asset.
Updated documentation to clarify that the transaction header retains public commitments and includes the fee asset.
Added comments to clarify the purpose of the transaction identifier and its relation to the transaction header.
Copy link
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

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

Looks good to me!

final_account_commitment: Word,
input_notes_commitment: Word,
output_notes_commitment: Word,
fee_asset: Word,
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: would it be better to pass the fee here as a FungibleAsset?

Copy link
Contributor

Choose a reason for hiding this comment

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

@crStiv Can you change this to take the FungibleAsset instead of Word?

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Thank you! Overall, I think this looks good - but two comments:

  • We should probably merge this after the asset refactoring PRs are merged.
  • If we change the fee to be paid via something like a FEE note, the need for this may go away (though, this is a bigger issue that we still need to align on).

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.

Change TransactionId to commit to fee asset

3 participants