GithubHelp home page GithubHelp logo

Comments (6)

schildbach avatar schildbach commented on May 2, 2024

If you look at InputParser.parseAndHandlePaymentRequest() it gets the pkiVerificationData from the PaymentSession, but verificationData.rootAuthority.getCAName() does not return any name in the case of Gavins requests. Even if you .toString() the certificates themselves you do not see a well-known CA name. So I guess he just faked his own or something. I wanted to ask him but did not see him around lately.

from bitcoin-wallet.

mikehearn avatar mikehearn commented on May 2, 2024

Ah, that's the bug. Check the pkiData.orgName field instead. Checking the CA name of the root authority will not work because usually, a root authority is not signed by another CA.

from bitcoin-wallet.

schildbach avatar schildbach commented on May 2, 2024

So you mean verificationData.rootAuthority.orgName?

from bitcoin-wallet.

mikehearn avatar mikehearn commented on May 2, 2024

Oh, that's annoying. Somehow I missed during code review that PaymentSession isn't making this data easily available. Will fix now.

from bitcoin-wallet.

mikehearn avatar mikehearn commented on May 2, 2024

OK, I uploaded a commit that shows how to fix it. For now could you copy/paste the getNameFromCert method into your code? Once we do a 0.11.1 we can include that commit and then you can update to it.

from bitcoin-wallet.

schildbach avatar schildbach commented on May 2, 2024

Fixed.

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.