Coder Social home page Coder Social logo

u2f-ether's Introduction

Introduction

This is an implementation of the server-side part of the U2F protocol on the Ethereum blockchain.

No hardware key is needed to test the implementation since a software token is used for testing purposes.

The SmartContract implements U2F with curve SECP256R (standard) and with curve SECP256K (non-standard). This decision was made because the verification of signatures generated on curve SECP256K in Ethereum is a lot cheaper than verification of signatures on curve SECP256R. A user has the option to select which curve should be used for verification, since the user has to carry the cost of it.

Current benchmark:

Action SECP256K (non-standard) SECP256R (standard) Factor (SECP256R/SECP256K)
Registration 316919 1706232 5,38
Create transaction 99115 99115 1
Verify transaction 176090 1522286 8,6

Setup

Clone the necessary repositories:

git clone https://github.com/FBreuer2/u2f-ether.git
git clone https://github.com/FBreuer2/u2f-virtualtoken

and get the required dependencies with

cd u2f-ether && npm install && cd ..
cd u2f-virtualtoken && npm install && cd ..

Running tests/benchmarks

All tests can be run with

npm test

the output will also include benchmarks

u2f-ether's People

Contributors

fbreuer2 avatar

Watchers

Matthias Grundmann avatar  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.