$ npm install autobee-encryptionEncryption module for Autobee. Provides encryption classes for writer cores, view cores, and the system core.
npm install autobee-encryption
const { AutobeeEncryption, WriterEncryption, ViewEncryption } = require('autobee-encryption')
WriterEncryptionEncrypts writer (input) cores. Pass an instance as the encryption option when creating an Autobase:
const enc = new WriterEncryption(auto)
ViewEncryptionEncrypts a named view core:
const enc = new ViewEncryption(auto, 'my-view')
AutobeeEncryption.setSystemEncryption(bootstrap, encryptionKey, core, opts)Helper to configure encryption on the system core. Handles both legacy (manifest v1) and current formats automatically:
await AutobeeEncryption.setSystemEncryption(bootstrap, encryptionKey, systemCore)
AutobeeEncryption.encryptAnchor(block, bootstrap, encryptionKey, namespace)Encrypts an anchor block in-place using the genesis entropy and a derived block key.
Apache-2.0