Git Product home page Git Product logo

pysatochip's People

Contributors

toporin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pysatochip's Issues

version pinpointing causes conflicts for applications that depend on pysatochip

I noticed that pysatochip 0.12.3 is pinpointing specific versions of libraries in https://github.com/Toporin/pysatochip/blob/master/requirements.txt

This is causing me some headaches when Electrum ABC already has dependencies to different/newer versions of those libraries. Do you think it would be possible to replace all == by >= in the requirements, to be more future proof and cause less conflicts?

For now I'm able to work around the issue, so it is not urgent. But something to think about for future releases.
It only causes problems when I try to build a deterministic release, with all version numbers pinpointed on the Electrum ABC side as well. Then there are conflicts that I need to solve by downgrading some library versions on my end.

card_type not defined when first opening a wallet in Electrum ABC

When I first open my satochip wallet, I get the message "Enter the pin for your None"

Screenshot from 2021-12-14 08-54-53

If I open the wallet again later in the same session, it correctly says "Enter the pin for your Satochip"

This is a very minor issue, I'm submitting it just in case you have an idea for a very simple fix. Maybe there is anything that can be done on the Electrum side to cause card_type to be defined earlier in the wallet opening process?

Or else, maybe just add a fallback in pysatochip.CardConnector:

def card_verify_PIN(self):
    logger.debug("In card_verify_PIN")
    
    while (self.card_present):
        if self.pin is None:
            is_PIN= False
            if self.client is not None:
+               card_type = self.card_type or "card"
+               msg = f'Enter the PIN for your {card_type}:'
-               msg = f'Enter the PIN for your {self.card_type}:'
                (is_PIN, pin_0)= self.client.PIN_dialog(msg) #todo: use request?

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.