基于异步可公开验证的可调安全秘密分享的强大阀值密码平台
A Platform for Robust Threshold Cryptography
PROTECT provides a platform for threshold-secure cryptography. It can be used to implement systems and services that tolerate multiple simultaneous faults and security breaches without loss of privacy, availability, or correctness. Further, the system self-heals from faults and self-recovers from breaches. This restorative capability enables PROTECT to maintain confidential elements (e.g., secret keys, private keys, bitcoin wallets, numbered bank accounts) durably over long periods, even if many components suffer data loss or data exposure events in that time.
PROTECT leverages mathematical relationships that exist between shares in a secret sharing scheme to perform secure and distributed function evaluations on the secret represented by those shares. These functions include distributed key generation, share refresh, share recovery, key derivation, public key decryption, and signature generation.
PROTECT includes a few example clients demonstrating threshold-secure applications. These examples include:
With the techniques implemented by PROTECT one can build secure cryptographic services having neither any single point of failure nor any single point of compromise.
The following section describes all of the funtionality PROTECT.
The following actions are performed by servers, although the distributed key generation is initiated by a user. Proactive Refresh and Share Recovery both occur on a scheduled periodic basis for all existing established secrets.
The following are supported user actions related to the management of shares. Note that PROTECT implements fine-grained access controls, permitting different users to be authorized to perform different functions or operations for different secrets.
PROTECT supports the following cryptographic functions out-of-the box today:
Very shortly support will be added to PROTECT for the following operations:
Protect is easy to deploy, and can get up and running in as few as three commands:
$ git clone https://github.com/jasonkresch/protect.git
$ cd protect && ./build.sh
$ cd bin && ./start-all-servers.sh 5However this will launch protect using default configuration parameters, with default (not secure) keys, and running all instances on a single machine (not reliable). The following subsections provide details on how to deploy PROTECT in a secure and reliable manner.
There are two options for downloading protect: 1. as a ZIP file and 2. using git.
PROTECT may be checked out using the git command. This is recommended if one wants to make changes to the code base.
Github provides two URLs for checking out the project, one via HTTPS and the other via SSH. If you intend to authenticate to Github using ssh keys, you should use the SSH method. Otherwise the HTTPS method can be used.
Video demonstration of dowloading PROTECT using git:
Checking out PROTECT via HTTPS can be accomplished with the following command:
$ git clone https://github.com/jasonkresch/protect.git
Checking out PROTECT via SSH can be accomplished with the following command:
$ git clone [email protected]:jasonkresch/protect.git
One can download PROTECT by clicking the green "Clone or download" button at the top-right of this page, and then clicking the link labeled "Download ZIP" or by clicking this following link:
https://github.com/jasonkresch/protect/archive/master.zip
Note that this option requires extracting the ZIP file using an unzip utility or archive manager.
Once downloaded the entire project can be compiled into two self-contained jar files by running the "build.sh" script contained in the base directory of the protect project. Details are included in the following subsections.
PROTECT is written in Java 1.8 but also includes some examples in python. It uses maven to for dependency management and for building. On a fresh Ubuntu install the following packages may need to be installed in order to compile and launch PROTECT.
# Determine latest versions of available packages
$ sudo apt-get-update
# Required for building and running
$ sudo apt-get install openjdk-8-jdk-headless maven
# Required for examples below
$ sudo apt-get install git python curl jq html2text opensslOnce the above prerequisites are installed PROTECT may be built by invoking the build.sh script.
Video demonstration of compiling PROTECT into jar files: Commands to perform download and compilation:
$ git clone https://github.com/jasonkresch/protect.git
$ cd protect
$ ./build.shThe end result of the build script is a two self-contained jar files:
Server: pross-server/target/pross-server-1.0-SNAPSHOT-shaded.jar
Client: pross-client/target/pross-client-1.0-SNAPSHOT-shaded.jar
This client jar file contains all example client functionality while the server jar file contains all shareholder server functionality.
The following subsections detail how to configure PROTECT to run in a secure way.
For ease of getting started, PROTECT comes with a set of certificates and keys pre-generated. However for any real-world deployment to be secure, one MUST complete the steps listed here.
./generate-server-key.sh Irm config/ca/ca-key-server-I./issue-server-certificates.shconfig/server/keys/public-Iconfig/server/certs/cert-Iconfig/ca/ca-cert-server-I.pemconfig/server/keys/config/server/certs/ config/ca/./generate-client-key.sh USERrm config/ca/ca-key-clients./issue-client-certificates.shconfig/client/keys/public-USERconfig/client/certs/cert-USERconfig/ca/ca-cert-clients.pemconfig/client/keys/config/client/certs/ config/ca/Note that there is no security requirement around the client CA private key, and the same client CA may be used for all users. This is because PROTECT servers always use the exact public key of the client to auhenticate, and ignore the certificate or the CA used to issue it.
Note, however, that most browsers require the server to present the client CA certificate in order to prompt the user to provide a client certificate for authentication. This is why the client CA certificate must be known to servers. This is not an issue for command line interaction via cURL where client certificate authentication can be forced.
The common config
暂无开放 Issues,或尚未同步最近议题。