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

feat: align coinjoin signing with Dash Core, add tests #252

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

HashEngineering
Copy link
Collaborator

Issue being fixed or feature implemented

What was done?

How Has This Been Tested?

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

TransactionSigner.ProposedTransaction proposal = new TransactionSigner.ProposedTransaction(finalMutableTransaction);
CoinJoinTransactionSigner signer = new CoinJoinTransactionSigner(sigs);
CoinJoinTransactionSigner signer = new CoinJoinTransactionSigner(sigs, true);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

anyoneCanPay = true

This means that the signature of each input allows for other inputs to be added to this transaction. This is how Dash Core handles it.

    m_wallet.SignTransaction(finalMutableTransaction, coins, SIGHASH_ALL | SIGHASH_ANYONECANPAY, signing_errors);

We didn't have any problems with not using this flag up until this point..

Copy link
Member

@Syn-McJ Syn-McJ left a comment

Choose a reason for hiding this comment

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

LGTM. I'll have to recheck this on iOS at some point.

@HashEngineering HashEngineering merged commit aa1d38b into feature-coinjoin Apr 30, 2024
4 checks passed
@Syn-McJ Syn-McJ deleted the feature-coinjoin-signing branch May 4, 2024 02:02
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.

2 participants