Skip to content

Conversation

@panleone
Copy link

@panleone panleone commented Feb 7, 2024

Alternative to the old PR #95

This PR describes how the transaction sighash algorithm of BIP143 can be adapted to dash. There are only 2 main differences:

  1. This algorithms takes in account dash special tx fields nType and vExtraPayload
  2. Algorithm is applied only to transactions with nVersion = 4 and it's deployed with an ehf hard fork.

The example in the test section was created with a draft implementation of the algorithm (see dashpay/dash#5860)

@panleone
Copy link
Author

Reviews applied and updated the test to make it consistent with the new approach

Copy link
Collaborator

@thephez thephez left a comment

Choose a reason for hiding this comment

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

Thanks for the work on this! I've added a few suggestions.

@panleone
Copy link
Author

Thanks for the work on this! I've added a few suggestions.

thanks for the review, I have applied your suggestions

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.

4 participants