minca
ApiCoreInterfaces

Interface: NodeConfig

Defined in: packages/core/src/node/types.ts:75

Properties

PropertyModifierTypeDescriptionDefined in
accountKey?readonlyUint8Array<ArrayBufferLike>The account key (deriveAccountKey(seed)): the node then follows the account registry and opens the contacts spacepackages/core/src/node/types.ts:79
accountName?readonlystringThe account's name as a grant gives it: what knocks and a new inbox say until the account's profile reaches this node from its registrypackages/core/src/node/types.ts:91
cache?readonlyCacheConfigHold only the collections this node uses, once a space names a keeper to hold the restpackages/core/src/node/types.ts:117
collections?readonlyreadonly CollectionDef[]Collection shapes to use where a space has none: checked on write, flagged (conforms) on read, never refusedpackages/core/src/node/types.ts:99
contactKey?readonlyUint8Array<ArrayBufferLike>The account's contact key (deriveContactKeyBytes(seed)), to open contact requests and knocks, in shared spaces and in the inbox. Its public half is published on the account's profiles.packages/core/src/node/types.ts:84
contactsSpace?readonlystringThe account's contacts space, for a node given it without the account key (an app granted contacts)packages/core/src/node/types.ts:86
fetchFiles?readonly"all"Fetch and keep every file of any size, as a keeper does. Default: others' files up to 5 MiB, dropping the least used past 256 MiB a space (spec 05 §16.6). setFileLimits changes either while the node runs.packages/core/src/node/types.ts:115
mailbox?readonlyMailboxClientHow the inbox and short links reach mailboxes. Default: createMailboxClientpackages/core/src/node/types.ts:93
network?readonlyNodeNetworkConfigOmit to stay offlinepackages/core/src/node/types.ts:101
provider?readonlyCryptoProviderThe cryptography to sign and check with. Default: P-256 over Web Crypto.packages/core/src/node/types.ts:97
sessionKey?readonlyCryptoKeyPairThe key to sign with, when the signer already named it. Default: one claimed from writerKey, else a fresh onepackages/core/src/node/types.ts:105
sessionTtlSeconds?readonlynumberSeconds each session delegation lasts; renewed before it runs out. Default 3600.packages/core/src/node/types.ts:103
signerreadonlyRootSignerWho this node acts for. The root key only signs session delegations.packages/core/src/node/types.ts:77
storesreadonlyStoreFactoryWhere the registry and each space's store livepackages/core/src/node/types.ts:95
watchIntervalMs?readonlynumberHow often to look for another process's writes to a folder store, ms. 0 disables. Default 2000.packages/core/src/node/types.ts:109
writerKey?readonlyWriterKeySourceWhere to keep a signing key across runs (browserWriterKeys). Without one, each run makes a new key. Ignored with sessionKey.packages/core/src/node/types.ts:107

On this page