-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Chain Signatures Contract on Ethereum | ||
|
||
## Overview | ||
|
||
This repository contains the Solidity code for the Chain Signatures contract, which is deployed on the Ethereum blockchain. | ||
|
||
## Setup | ||
|
||
To setup the project, you can use the following command: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
## Compile | ||
|
||
To compile the contract, you can use the following command: | ||
|
||
```bash | ||
npx hardhat compile | ||
``` | ||
|
||
## Testing | ||
|
||
To unit test the contract, you can use the following command: | ||
|
||
```bash | ||
npx hardhat test | ||
``` | ||
|
||
To do a quick end-to-end test, you can use the following command: | ||
```bash | ||
npx hardhat node | ||
``` | ||
|
||
Then in a separate terminal, you can run the following command to deploy the contract: | ||
```bash | ||
npx hardhat ignition deploy ignition/modules/chainSignatures.js --network localhost | ||
``` | ||
|
||
Then run this command to run the responder (mpc node expects to be this role): | ||
|
||
```bash | ||
npx hardhat run scripts/responder.js | ||
``` | ||
|
||
Then in a separate terminal, run the following command to execute the `sign.js` script (mpc client expects to be this role): | ||
```bash | ||
npx hardhat run scripts/sign.js | ||
``` |