toporin / satochip-bridge Goto Github PK
View Code? Open in Web Editor NEWMidleware that facilitates communication between a wallet client and a Satochip connected to a card reader.
License: GNU Lesser General Public License v3.0
Midleware that facilitates communication between a wallet client and a Satochip connected to a card reader.
License: GNU Lesser General Public License v3.0
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. 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
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.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.