Skip to content
ENC Protocol

@enc-protocol/node-sdk — NodeSdk

A host app that bundles the reference enclaves so a single node deployment can serve them all from one definition.

Extends AppSdk. Enclaves: DM, Group, Personal, Registry, and other reference enclaves. No encryption, no own write surface.

Install

npm install @enc-protocol/node-sdk

Construct

import { NodeSdk } from '@enc-protocol/node-sdk'
 
const sdk = new NodeSdk({ mode: 'cf', nodeUrl: process.env.NODE_URL, identity })
await sdk.init()   // registers all bundled enclaves

Options are the standard AppSdk constructor.

A host, not a feature app

NodeSdk has no generated submit* / query* methods of its own — it exists to register and host the bundled enclaves so they're available under one deployment.

This is the SDK counterpart to running an ENC node: the node serves the enclaves, and NodeSdk bundles their manifests so a deployment can stand them all up at once.

See also