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: add bip21 addresses for onchain and lightning #304

Closed
wants to merge 4 commits into from
Closed

Conversation

dni
Copy link
Contributor

@dni dni commented Nov 13, 2023

closes #302

Copy link

vercel bot commented Nov 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
webapp ✅ Ready (Inspect) Visit Preview Nov 16, 2023 7:55pm
webapp-mainnet ✅ Ready (Inspect) Visit Preview Nov 16, 2023 7:55pm

src/utils/invoice.js Outdated Show resolved Hide resolved
src/utils/invoice.js Outdated Show resolved Hide resolved
src/utils/invoice.js Outdated Show resolved Hide resolved
Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

Reverse Swap BIP21 works with segwit addresses:
image

But not with nested or legacy:
image
image

@kilrau
Copy link
Member

kilrau commented Nov 16, 2023

Reverse swap works, but don't truncate, just leave the whole BIP21 unified string there just like you do for normal swaps.

Also make sure that tests cover it all.

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

Parsing unified BIP21s (https://bitcoinqr.dev/) for normal swaps works fine.

Reverse swaps still several issues:

  • liquidnetwork: bip21s are not recognized
  • bitcoin: with legacy P2PKH (1...) or P2WPKH-nested-in-P2SH (3...) still not recognized as I mentioned in my previous review.

@dni
Copy link
Contributor Author

dni commented Nov 18, 2023

waiting for other prs to resolve first

@dni dni marked this pull request as draft November 18, 2023 12:14
@dni dni closed this Dec 7, 2023
@dni dni deleted the bip21-strings branch December 7, 2023 09:27
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.

Allow BIP21 strings
3 participants