Giter Site home page Giter Site logo

Comments (6)

schildbach avatar schildbach commented on May 19, 2024

Can you provide an example QR Code?

from bitcoin-wallet.

MarkusTeufelberger avatar MarkusTeufelberger commented on May 19, 2024

qrcode2
qrcode1

With and without message (which is not used).

Weirdly enough after a bit more testing, it seems that some other QR codes (e.g. generated by http://qrfree.kaywa.com/?l=1&s=8&d=bitcoin%3A1BitcoinEaterAddressDontSendf59kuE%3Flabel%3DBlackhole%26message%3DDo_not_send_stuff_here%26amount%3D123.45) in fact DO work as intended?!

from bitcoin-wallet.

schildbach avatar schildbach commented on May 19, 2024

The QR codes have a CR or LF encoded into the amount. This makes them invalid.

from bitcoin-wallet.

AndySchroder avatar AndySchroder commented on May 19, 2024

I am having a similar problem, although I don't think there is a CF or LF in the QR code. I am generating the QR code with https://pypi.python.org/pypi/qrencode, and doing test decoding using QtQR. I am using a sample URI (bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Luke-Jr) straight from the documentation (https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki). Attached is a QR code I am generating that is not working.

test

from bitcoin-wallet.

schildbach avatar schildbach commented on May 19, 2024

The log says: "AddressFormatException: Checksum does not validate". Double check the address.

from bitcoin-wallet.

AndySchroder avatar AndySchroder commented on May 19, 2024

Sorry about that. I guess they have a bad example address in the documentation, which is weird. I thought I had tested it without a '?' or any optional keys after the bitcoin address, and it was working, but after double checking, it does not work that way either. If I try a different bitcoin address, everything works as expected.

from bitcoin-wallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.