GithubHelp home page GithubHelp logo

toporin / satochip-bridge Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 8.0 423 KB

Midleware that facilitates communication between a wallet client and a Satochip connected to a card reader.

License: GNU Lesser General Public License v3.0

Python 75.69% Dockerfile 1.35% Shell 22.96%

satochip-bridge's People

Contributors

toporin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

satochip-bridge's Issues

Several users report a crash when checking the certificate of the card: "VERIFY CARD" button.

Version: https://github.com/Toporin/Satochip-Bridge/releases/download/v0.5.3/SatochipBridge-v0.5.3-57d874ae.exe

Several users report an app crash while hitting the "VERIFY CARD" button within the Bridge.
There is an error while reading the card certificate.

The logs show this:
ERROR [CardConnector] card_export_perso_certificate | Error during personalization certificate export: (error code 0x9c04)

And from time to time, the app crash.

ModuleNotFoundError while trying to run

ModuleNotFoundError while trying to run. Please bundle all needed Python modules inside the AppImage. Thanks.

Import exception

ModuleNotFoundError("No module named 'CardConnector'",)

Import exception

ModuleNotFoundError("No module named 'CardConnector'",)

Import exception

ModuleNotFoundError("No module named 'JCconstants'",)

Import exception

ModuleNotFoundError("No module named 'util'",)

Import exception

ModuleNotFoundError("No module named 'util'",)

Import exception

ModuleNotFoundError("No module named 'Satochip2FA'",)

DEBUG PKGDIR=  /run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/satochip_bridge

Traceback (most recent call last):

  File "/run/firejail/appimage/.appimage-9223/usr/bin/SatochipBridge.py", line 9, in <module>

    from CardConnector import CardConnector, UninitializedSeedError

ModuleNotFoundError: No module named 'CardConnector'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/run/firejail/appimage/.appimage-9223/usr/bin/SatochipBridge.py", line 19, in <module>

    from satochip_bridge.CardConnector import CardConnector, UninitializedSeedError

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/satochip_bridge/__init__.py", line 2, in <module>

    from .SatochipBridge import SatochipBridge

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/satochip_bridge/SatochipBridge.py", line 60, in <module>

    cc = CardConnector(parser, client)

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/satochip_bridge/CardConnector.py", line 134, in __init__

    self.cardrequest = CardRequest(timeout=0, cardType=self.cardtype)

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/CardRequest.py", line 61, in __init__

    timeout)

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/pcsc/PCSCCardRequest.py", line 82, in __init__

    self.hcontext = PCSCContext().getContext()

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/pcsc/PCSCContext.py", line 56, in __init__

    self.renewContext()

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/pcsc/PCSCContext.py", line 70, in renewContext

    PCSCContext.instance = PCSCContext.__PCSCContextSingleton()

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/pcsc/PCSCContext.py", line 40, in __init__

    raise EstablishContextException(hresult)

smartcard.pcsc.PCSCExceptions.EstablishContextException: 'Failure to establish context: Service not available.'

Reference:
AppImage/appimage.github.io#2005

QT Wayland error on TailsOS - Might be a style issue

OS : TailsOS 5.20 latest

Try with:
Bridge: https://github.com/Toporin/Satochip-Bridge/releases/download/v0.5.3/satochip_bridge-v0.5.3-57d874ae.AppImage
Bridge: https://github.com/Toporin/Satochip-Bridge/releases/download/v0.5.0/satochip_bridge-v0.5.0-83efb45.AppImage

When running, I got this error:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QApplication: invalid style override passed, ignoring it.
Available styles: Windows, Fusion

Then the Bridge does not launched. Console logs stay like this indefinitely.

I had a look on these ressources and try several fix - regarding Wayland:
https://gitlab.tails.boum.org/tails/tails/-/issues/19326
I tried:

killall satochip_bridge-v0.5.3-57d874ae.AppImage
unset QT_QPA_PLATFORM ; ./satochip_bridge-v0.5.3-57d874ae.AppImage

None of these tests worked. So it might be either related to Wayland (but I doubt), or the style used or maybe the QTPyPi librairy used by the Bridge.

cannot import name 'encode_single' from 'eth_abi'

When trying to run python3 satochip_bridge/SatochipBridge.py I get the following (the requirements all installed ok)

$ python3 satochip_bridge/SatochipBridge.py
Traceback (most recent call last):
  File "/home/fab/abradsha/Nextcloud/Copy/git/Satochip-Bridge/satochip_bridge/SatochipBridge.py", line 10, in <module>
    from py_eth_sig_utils import eip712
  File "/home/fab/abradsha/.local/lib/python3.12/site-packages/py_eth_sig_utils/__init__.py", line 3, in <module>
    from . import (  # NOQA
  File "/home/fab/abradsha/.local/lib/python3.12/site-packages/py_eth_sig_utils/signing.py", line 3, in <module>
    from .eip712 import encode_typed_data
  File "/home/fab/abradsha/.local/lib/python3.12/site-packages/py_eth_sig_utils/eip712/__init__.py", line 3, in <module>
    from .encoding import (  # NOQA
  File "/home/fab/abradsha/.local/lib/python3.12/site-packages/py_eth_sig_utils/eip712/encoding.py", line 2, in <module>
    from eth_abi import encode_single, encode_abi
ImportError: cannot import name 'encode_single' from 'eth_abi' (/home/fab/abradsha/.local/lib/python3.12/site-packages/eth_abi/__init__.py)

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.