@enc-protocol/registry-sdk — RegistrySdk
The discovery app: a public index of identities, enclaves, and nodes that lets clients resolve who/where without a central server.
Extends AppSdk. Enclave: Registry.
No encryption — the registry is a public index.
Install
npm install @enc-protocol/registry-sdkConstruct
import { RegistrySdk } from '@enc-protocol/registry-sdk'
const sdk = new RegistrySdk({ mode: 'cf', nodeUrl: process.env.NODE_URL, identity })
await sdk.init()Options are the standard AppSdk constructor.
Read-only at the app level
RegistrySdk exposes no generated submit* methods — registration is written at the enclave level through the Registry enclave's customs (reg_identity, reg_enclave, reg_node), and read back through the registry's dataview snapshots.
Read them with the generic AppSdk surface, or drop to the lower-level adapter:
const identities = await sdk.query('reg_identities')
const client = sdk.raw() // underlying AppClient for enclave-level accessSee also
- Enclave profile: Registry
RegistryClient— typed registry lookups- App SDK pattern ·
app-sdk-base