Giter VIP home page Giter VIP logo

thresh-rust-u2f's Introduction

Threshold Rust U2F

A software U2F Universal 2nd Factor implementation using threshold signatures.

The implementation uses a server side and a client side to create a valid U2F signature using threshold signatures. It uses Gotham-city for the server and client sides. The client side emulates a USB communication and runs as a software daemon.

The project is heavily inspired and based on rust-u2f, with the addition of TSS functionality.

Installation

From source (tested on Fedora)

Install rust (tested with version: rustc 1.40.0-nightly (084beb83e 2019-09-27))

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup install nightly-2019-09-28-x86_64-unknown-linux-gnu
rustup defualt nightly-2019-09-28-x86_64-unknown-linux-gnu

Install dependencies

sudo yum install make
sudo yum -y update glibc
sudo yum install gmp
sudo yum install gmp-devel
sudo yum install openssl
sudo yum install openssl-devel
sudo yum install clang
sudo yum install systemd-devel
sudo yum install dbus-devel
sudo yum install selinux-policy-devel
sudo yum install rpm-build

Build client

cd linux
cargo build
make install

Change the storage from keyring to file

vim ~/.config/rustu2f/config.json

Change SecretService to File

Build local-server

Install node required for local server

sudo dnf module install nodejs:10

Build server

cd local-server
cargo build

Running

Once all the dependencies are installed, run the client and server side on two different terminals.

Running server

cd local-server
cargo build
./target/debug/local-server

Running client

cd linux
cargo build
./target/debug/softu2f-user-daemon

Testing

Test u2f-core functionality

cd u2f-core
cargo test

Trying it out

Visit Yubikey demo and see how it works.

thresh-rust-u2f's People

Contributors

danstiner avatar chris-ricketts avatar oliv3r avatar sameer avatar

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.