Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/pages/ciphernode-operators/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ The Enclave protocol uses several contracts that work together:

| Contract | Address | Deploy block |
| -------------------- | -------------------------------------------- | ------------ |
| Enclave | `0x8f5b5178D9bCC654076a153EC86236453C40bfD5` | 10043253 |
| CiphernodeRegistry | `0xae897dC011aBF249130257162E83dcf913e578cb` | 10043251 |
| BondingRegistry | `0xB2Cc8125fA3895D0003972fC0e2C6f1EA2e35693` | 10043248 |
| SlashingManager | `0x91B2a43366EC8022F518Bad09751266Fd0884095` | 10043248 |
| EnclaveTicketToken | `0x30b94f734d60531eE829Dd03dF4484C3f3A0C2e8` | 10043247 |
| EnclaveToken (ENCL) | `0x77792B81698cdDE36ea74D3A7707A9ba94eE9A4C` | 10043246 |
| MockUSDC (fee token) | `0xBcAAFcAD5eF365B05eEB24d49eCf7A1c597195e1` | 10043245 |
| Enclave | `0x450015E41E1F6b6AfaEbf598E32a8d02a368c0A0` | 10395619 |
| CiphernodeRegistry | `0xc8D2880c59D5e807eFFDee3451fb0Aa97f6aefDA` | 10395615 |
| BondingRegistry | `0x1323d235Cd040d64D01d3C2adf084F9A16a675aE` | 10395616 |
| SlashingManager | `0x9263b4B2D98FB26172faF018EB81B9227E56dB35` | 10395614 |
| EnclaveTicketToken | `0x7D3D17F0A60cF227aaC78cB0cE6B25E00768dbe8` | 10395613 |
| EnclaveToken (ENCL) | `0x24b28471AE7BdF1fdBcfDd183c73D13ff0689B99` | 10395612 |
| MockUSDC (fee token) | `0x01AbD7D8e6547c943c2fE082C3Ce194fDCe57396` | 10395611 |

> Always verify addresses from `packages/enclave-contracts/deployed_contracts.json` or your
> deployment output. Addresses differ per network.
Expand Down
24 changes: 12 additions & 12 deletions docs/pages/ciphernode-operators/running.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ chains:
rpc_url: 'wss://ethereum-sepolia-rpc.publicnode.com'
contracts:
enclave:
address: '0x95bC90fcb37684bfbAA3ffA2CbF4067fA404c4AA'
deploy_block: 10279529
address: '0x450015E41E1F6b6AfaEbf598E32a8d02a368c0A0'
deploy_block: 10395619
ciphernode_registry:
address: '0x7BBF0074400884879837200A059C3b562E6Ee353'
deploy_block: 10279527
address: '0xc8D2880c59D5e807eFFDee3451fb0Aa97f6aefDA'
deploy_block: 10395615
bonding_registry:
address: '0x7F0F8D7Bb1cAc10901a04c7Ec5c8A73eEC8377dD'
deploy_block: 10279524
address: '0x1323d235Cd040d64D01d3C2adf084F9A16a675aE'
deploy_block: 10395616
```

### Start Your Node
Expand Down Expand Up @@ -164,14 +164,14 @@ chains:
rpc_url: 'wss://ethereum-sepolia-rpc.publicnode.com'
contracts:
enclave:
address: '0x95bC90fcb37684bfbAA3ffA2CbF4067fA404c4AA'
deploy_block: 10279529
address: '0x450015E41E1F6b6AfaEbf598E32a8d02a368c0A0'
deploy_block: 10395619
ciphernode_registry:
address: '0x7BBF0074400884879837200A059C3b562E6Ee353'
deploy_block: 10279527
address: '0xc8D2880c59D5e807eFFDee3451fb0Aa97f6aefDA'
deploy_block: 10395615
bonding_registry:
address: '0x7F0F8D7Bb1cAc10901a04c7Ec5c8A73eEC8377dD'
deploy_block: 10279524
address: '0x1323d235Cd040d64D01d3C2adf084F9A16a675aE'
deploy_block: 10395616
```

### Run the Container
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ const ct = await encryptNumber(42n, pk, 'INSECURE_THRESHOLD_512')

## Modular sub-module imports

The SDK is organized into three sub-modules (`contracts`, `events`, `encryption`) that can be
imported independently for tree-shaking:
The SDK is organized into three sub-modules (`contracts`, `events`, `crypto`) that can be imported
independently for tree-shaking:

```ts
import { generatePublicKey, encryptNumber } from '@enclave-e3/sdk/crypto'
Expand Down
2 changes: 1 addition & 1 deletion examples/CRISP/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"deploy": "gh-pages -d dist"
},
"dependencies": {
"@crisp-e3/sdk": "0.6.0",
"@crisp-e3/sdk": "0.7.0",
"@emotion/babel-plugin": "^11.11.0",
"@emotion/react": "^11.11.4",
"@phosphor-icons/react": "^2.1.4",
Expand Down
294 changes: 72 additions & 222 deletions examples/CRISP/packages/crisp-contracts/deployed_contracts.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/CRISP/packages/crisp-contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crisp-e3/contracts",
"version": "0.6.0",
"version": "0.7.0",
"type": "module",
"files": [
"contracts",
Expand Down
2 changes: 1 addition & 1 deletion examples/CRISP/packages/crisp-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crisp-e3/sdk",
"version": "0.6.0",
"version": "0.7.0",
"type": "module",
"author": {
"name": "gnosisguild",
Expand Down
2 changes: 1 addition & 1 deletion examples/CRISP/packages/crisp-zk-inputs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@crisp-e3/zk-inputs",
"type": "module",
"description": "Core logic to pre-compute CRISP ZK inputs (WASM/JavaScript bindings).",
"version": "0.6.0",
"version": "0.7.0",
"license": "LGPL-3.0-only",
"repository": {
"type": "git",
Expand Down
260 changes: 61 additions & 199 deletions packages/enclave-contracts/deployed_contracts.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/enclave-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ await sdk.publishCiphertextOutput(e3Id: bigint, ciphertextOutput: `0x${string}`,
// Read operations
const e3Data = await sdk.getE3(e3Id: bigint);
const publicKey = await sdk.getE3PublicKey(e3Id: bigint);
const quote = await sdk.getE3Quote(params: E3RequestParams);
const stage = await sdk.getE3Stage(e3Id: bigint);
const reason = await sdk.getFailureReason(e3Id: bigint);
```

#### Event Handling
Expand Down
2 changes: 1 addition & 1 deletion packages/enclave-sdk/src/enclave-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class EnclaveSDK {

const presetName = config.thresholdBfvParamsPresetName ?? DEFAULT_THRESHOLD_BFV_PARAMS_PRESET_NAME

if (!Object.values(ThresholdBfvParamsPresetNames).includes(presetName)) {
if (!ThresholdBfvParamsPresetNames.includes(presetName)) {
throw new SDKError(`Invalid threshold BFV parameters preset name: ${presetName}`, 'INVALID_THRESHOLD_BFV_PARAMS_PRESET_NAME')
}

Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions templates/default/deployed_contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@
},
"localhost": {
"PoseidonT3": {
"blockNumber": 6,
"blockNumber": 14,
"address": "0x3333333C0A88F9BE4fd23ed0536F9B6c427e3B93"
},
"MockUSDC": {
"constructorArgs": {
"initialSupply": "1000000"
},
"blockNumber": 7,
"blockNumber": 15,
"address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"
},
"EnclaveToken": {
"constructorArgs": {
"owner": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
},
"blockNumber": 8,
"blockNumber": 16,
"address": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0"
},
"EnclaveTicketToken": {
Expand All @@ -44,14 +44,14 @@
"registry": "0x0000000000000000000000000000000000000001",
"owner": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
},
"blockNumber": 10,
"blockNumber": 18,
"address": "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"
},
"SlashingManager": {
"constructorArgs": {
"admin": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
},
"blockNumber": 11,
"blockNumber": 19,
"address": "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707"
},
"CiphernodeRegistryOwnable": {
Expand All @@ -66,7 +66,7 @@
"proxyAdminAddress": "0x9bd03768a7DCc129555dE410FF8E85528A4F88b5",
"implementationAddress": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
},
"blockNumber": 12,
"blockNumber": 20,
"address": "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853"
},
"BondingRegistry": {
Expand All @@ -88,7 +88,7 @@
"proxyAdminAddress": "0x8aCd85898458400f7Db866d53FCFF6f0D49741FF",
"implementationAddress": "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6"
},
"blockNumber": 13,
"blockNumber": 21,
"address": "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318"
},
"Enclave": {
Expand All @@ -111,7 +111,7 @@
"proxyAdminAddress": "0x8dAF17A20c9DBA35f005b6324F493785D239719d",
"implementationAddress": "0x610178dA211FEF7D417bC0e6FeD39F05609AD788"
},
"blockNumber": 16,
"blockNumber": 24,
"address": "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e"
},
"E3RefundManager": {
Expand All @@ -127,28 +127,28 @@
"proxyAdminAddress": "0x32467b43BFa67273FC7dDda0999Ee9A12F2AaA08",
"implementationAddress": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0"
},
"blockNumber": 18,
"blockNumber": 26,
"address": "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82"
},
"MockComputeProvider": {
"blockNumber": 20,
"blockNumber": 30,
"address": "0xc5a5C42992dECbae36851359345FE25997F5C42d"
},
"MockDecryptionVerifier": {
"blockNumber": 21,
"blockNumber": 31,
"address": "0x67d269191c92Caf3cD7723F116c85e6E9bf55933"
},
"MockE3Program": {
"blockNumber": 22,
"blockNumber": 32,
"address": "0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E"
},
"ImageID": {
"address": "0xa82fF9aFd8f496c3d6ac40E2a0F282E47488CFc9",
"blockNumber": 26
"blockNumber": 36
},
"MyProgram": {
"address": "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8",
"blockNumber": 28
"blockNumber": 38
}
}
}
Loading