Giter Club home page Giter Club logo

tkeyclient's People

Contributors

cibomahto avatar dehanj avatar mchack-work avatar quite avatar secworks avatar valkeh avatar

Watchers

 avatar

tkeyclient's Issues

Export DetectSerialPort function

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.

Device locking

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

Enable static build on macOS

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.

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.