Giter VIP home page Giter VIP logo

decentralizedca's Introduction

Prerequisites:

To run the code:

  • Go to DecentralizedCA/src
  • run 'make' //This will generate two executables: a.out and setup.out
  • To run on local machine: run './a.out [port-number] -- [proto] [operation] & ./a.out [port-number] localhost [proto] [operation]'
  • To run on separate machines: run './a.out [port-number] -- [proto] [operation]' on server machine and run './a.out [port-number] [remote-host] [proto] [operation]' on client machine
  • proto defines the protocol to be executed - Yao or DualEx. The options of proto are 'yao' and 'dualex'
  • operation defines the ECDSA operation to bed executed - Public Key Generation or Certificate Signing. The options of operation are 'genPubKey' and 'signCert'
  • Warning: Both the parties should use the exact same values of proto and operation, else the code will fail!

For now, the code uses secp192k1 curve, and this could be easily extended to any standard Elliptic Curve. The code will output the ECDSA public key pair (Q_x, Q_y) in case of 'genPubKey', and ECDSA signature pair (r,s) in case of 'signCert'.


The current oblivCA.c contains hard coded values for the sec192k1 curve, pks A and B, ks A and B, and the hash of the to-be-signed certificate.

To sign a different string/certificate, or to generate new values for k and pk:

./setup.out generateBigNums p log2n
or
./setup.out hashMessage log2n
Or omit the p or log2n to use the default secp192k1 curve.
The log2n is the number of bits of your curve.
For example, for the default secp192k1 curve, log2n=192

The generated random big numbers and hashed message will be printed to console, where you can copy/paste into oblivCA.c.
Note: a.out and setup.out are compiled as separately because libgmp does not compile with oblivC.

decentralizedca's People

Contributors

bargavj avatar bargavjayaraman avatar hainali avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

evansuva gps949

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.