Skip to content

Initial BIP-47 support#32

Open
kdmukai wants to merge 11 commits intodiybitcoinhardware:masterfrom
kdmukai:bip47
Open

Initial BIP-47 support#32
kdmukai wants to merge 11 commits intodiybitcoinhardware:masterfrom
kdmukai:bip47

Conversation

@kdmukai
Copy link
Contributor

@kdmukai kdmukai commented Aug 5, 2022

Implements:

  • generating the recipient's BIP-47 shareable payment code (version 1).
  • recipient's notification address.
  • generate the nth payment address for the payer.
  • generate the nth receive address for the recipient.
  • extract the payer's payment code from a notification tx.

Implementation matches Samourai (still to be confirmed) and Sparrow (tested).

Copy link
Contributor

@stepansnigirev stepansnigirev left a comment

Choose a reason for hiding this comment

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

Overall, looks good. A few small changes required (i.e. your test doesn't pass). Also not clear if TODO will be addressed in this PR or in a separate one.

Note: regtest blind/unblind still has a bug I'm trying to work through. But as far as I can tell, mainnet works as expected, as confirmed via the test cases.
@kdmukai
Copy link
Contributor Author

kdmukai commented Sep 5, 2022

After my most recent commit, I am now satisfied with where this PR is at. Awaiting further review/feedback, but otherwise I consider this PR complete.

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