privateKey property

Uint8List? privateKey
final

Optional PKCS#8 DER bytes for ZKE (Zero-Knowledge Encryption) mode.

When set, the E2EE layer uses this persistent device key instead of generating a fresh ephemeral key per client instance. The key is loaded via e2eeKeyPairFromPkcs8.

Obtain a device key with: bella auth setup (exports ~/.bella/device-key.pem; strip PEM headers and base64-decode to get the raw DER bytes).

When null (default) an ephemeral P-256 key pair is generated automatically.

Implementation

final Uint8List? privateKey;