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. To convert a PEM or base64 string (e.g. BELLA_BAXTER_PRIVATE_KEY) use bellaPrivateKeyFromEnvValue.

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

Implementation

final Uint8List? privateKey;