tillitis / tkeyclient Goto Github PK
View Code? Open in Web Editor NEWGo package for a TKey client
License: GNU General Public License v2.0
Go package for a TKey client
License: GNU General Public License v2.0
In our client apps we try to autodetect the TKey serial device. We use the internal function util.DetectSerialPort
from internal/util.
To make it possible for external repos to also autodetect TKey devices we might want to export this function, perhaps in tk1
.
Investigate device locking in different operating system.
Trying to run two tkey-runapp at once messes up the firmware but doesn't enter failed state. This works for me as an ordinary non-root user. If the serial package doesn't support device locking we should implement it ourselves somehow on the client side.
Might also need to look into why the firmware isn't in state failed.
% ./tkey-runapp apps/signer/app.bin &; ./tkey-runapp apps/signer/app.bin
[1] 91914
Auto-detected serial port /dev/ttyACM0
Connecting to device on serial port /dev/ttyACM0 ...
Auto-detected serial port /dev/ttyACM0
Connecting to device on serial port /dev/ttyACM0 ...
GetNameVersion failed: ReadFrame: Expected cmdlen 2 (32 bytes), got 1 (4 bytes)
If the serial port is correct, then the TKey might not be in firmware-
mode, and have an app running already. Please unplug and plug it in again.
[1] + exit 1 ./tkey-runapp apps/signer/app.bin
Firmware name0:'tk m' name1:'kdf' version:0
GetUDI failed: ReadFrame: Message not meant for us: dest 0
Enumeration of USB devices requires a dynamic build on macOS. We would like to be able to do static builds. One way to do this is to run an external command for enumeration on macOS.
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.