API reference@evolu/commonlocal‑first/Owner › createOwnerWriteKey

function createOwnerWriteKey(
  deps: RandomBytesDep,
): Uint8Array<ArrayBufferLike> &
  Brand<"Entropy"> &
  Brand<"Length16"> &
  Brand<"OwnerWriteKey">;

Defined in: packages/common/src/local-first/Owner.ts:128

Creates a new random OwnerWriteKey for rotation.

The initial OwnerWriteKey is deterministically derived from OwnerSecret. Use createOwnerWriteKey to rotate (replace) the write key without changing the owner identity.