0.0.4 • Published 10 months ago

@gnosis-guild/enclave v0.0.4

Weekly downloads
-
License
LGPL-3.0-only
Repository
-
Last release
10 months ago

Enclave EVM

Importing the contracts, interfaces or types

To install, run

yarn add @gnosis-guild/enclave

If writing a new E3 program, you can import the necessary interfaces by writing something similar to:

import {
    IE3Program,
    IInputValidator,
    IDecryptionVerifier
} from "../interfaces/IE3Program.sol";

contract MockE3Program is IE3Program {...}

Check out the E3 mock for an example

To deploy

yarn deploy --network [network]

This will add the deployment information to the ./deployments directory.

Be sure to configure your desired network in hardhat.config.ts before deploying.

Registering a Ciphernode

To add a ciphernode to the registry, run

yarn ciphernode:add --network [network] --ciphernode-address [address]

To request a new committee, run

yarn run hardhat committee:new --network [network] \

To publish the public key of a committee, run

yarn run hardhat --network [network] committee:publish --e3-id [e3-id] --nodes [node address],
[node address] --public-key [publickey] \

To activate an E3, run

yarn run hardhat --network [network] e3:activate --e3-id [e3-id] \

To publish an input for an active E3, run

yarn run hardhat --network [network] e3:publishInput --e3-id [e3-id] --data [input data]
0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago