wallet icon indicating copy to clipboard operation
wallet copied to clipboard

BIP21 bug: Send isn't properly parsing URI

Open tonygallippi opened this issue 12 years ago • 3 comments

bitcoin://ADDRESS must be supported in addition to bitcoin:ADDRESS

photo1 5

tonygallippi avatar Aug 01 '14 23:08 tonygallippi

Blockchain wallet uses bitcoin://ADDRESS

it's not proper BIP21 protocol but let's deal with it anyway. also deal with a single / incase that ever happens.

tonygallippi avatar Aug 01 '14 23:08 tonygallippi

also, it can't properly parse the amount and other arguments.

for example when scanning this QR data

bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=0.0017&r=https%3A%2F%2Fbitpay.com%2Fi%2FPmMn5585LoLSGqqQGBZa5N

it puts this entire string into the address box:

1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=0.0017&r=https%3A%2F%2Fbitpay.com%2Fi%2FPmMn5585LoLSGqqQGBZa5N

screen shot 2014-08-01 at 8 17 48 pm

amount should go in the amount input (and be sure to properly convert BTC to bits)

for our optional Note input, use the "message" argument as defined in BIP21

https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki

ignore all other arguments for now. payment protocol will handle the ?r= separately.

tonygallippi avatar Aug 02 '14 00:08 tonygallippi

Waiting for this https://github.com/bitpay/bitcore/pull/483

yemel avatar Aug 11 '14 20:08 yemel