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

docs: document the dash analogue of BIP143 #149

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

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)

dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Show resolved Hide resolved
@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.

dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
dip-tx-sighash-algorithm.md Outdated Show resolved Hide resolved
@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.

None yet

4 participants