🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@enclave-e3/contracts

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enclave-e3/contracts

Enclave is an open-source protocol for Encrypted Execution Environments (E3).

latest
npmnpm
Version
0.1.5
Version published
Weekly downloads
122
5.17%
Maintainers
3
Weekly downloads
 
Created
Source

Enclave Smart Contracts

Importing the contracts, interfaces or types

To install, run

pnpm add @enclave-e3/contracts

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

import {
    IE3Program,
} from "@enclave-e3/contracts/contracts/interfaces/IE3Program.sol";

contract MockE3Program is IE3Program {...}

Check out the E3 mock for an example

To deploy

pnpm deploy --network [network]

This will add the deployment information to the ./ignition/deployments directory, as well as to the deployed_contracts.json file.

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

Localhost deployment

If you are running Enclave locally, you can first start a local hardhat (or Anvil) node, then deploy the contracts using the following commands:

pnpm hardhat node
pnpm clean:deployments
pnpm deploy:mocks --network localhost

This will ensure that you are a local node running, as well as that there are no conflicting deployments stored in localhost.

Registering a Ciphernode

To add a ciphernode to the registry, run

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

To request a new committee, run

pnpm run hardhat committee:new --network [network]

To publish the public key of a committee, run

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

To activate an E3, run

pnpm run hardhat --network [network] e3:activate --e3-id [e3-id]

To publish an input for an active E3, run

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

Keywords

blockchain

FAQs

Package last updated on 13 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts