btctipserver icon indicating copy to clipboard operation
btctipserver copied to clipboard

bip21: support bitcoin uri scheme

Open lvaccaro opened this issue 3 years ago • 1 comments

update uri interface to support bip23 uri as: /bitcoin/bitcoin:<address>?amount=<decimal>&label=<text> .

  • update webserver interface
  • add bip21 struct + serialization/deserialization with url encoding
  • add new section to html page if specified in the bip21 as the following image

Screenshot 2021-05-05 at 02 54 25

lvaccaro avatar May 05 '21 01:05 lvaccaro

ACK 9113c10 . Nice improvement! I verified the QR Code displayed and the URI expected match. Also tested that going to URL:

http://0.0.0.0:8080/bitcoin?amount=10&label=test%20test

redirects to the expected next unused address URL:

http://0.0.0.0:8080/bitcoin/bitcoin:tb1q32a23q6u3yy89l8svrt80a54h06qvn7gnuvsen?amount=10&label=test%20test

I also verified on my test heroku app:

https://steves-btcts.herokuapp.com/bitcoin/bitcoin:tb1q32a23q6u3yy89l8svrt80a54h06qvn7gnuvsen?label=test&amount=10

notmandatory avatar Jul 28 '21 00:07 notmandatory

refactored in #36

lvaccaro avatar Dec 03 '23 18:12 lvaccaro