API reference › @evolu/common › local‑first/Owner › OwnerWriteKey
type OwnerWriteKey = Uint8Array<ArrayBufferLike> &
import("../Brand.ts").Brand<"Entropy"> &
import("../Brand.ts").Brand<"Length16"> &
import("../Brand.ts").Brand<"OwnerWriteKey">;
Defined in: packages/common/src/local-first/Owner.ts:174
A token that authorizes write operations for an Owner.
The initial key is derived from OwnerSecret. Relays keep the write key of the first write they accept for an owner and reject any other, so a write key can't be rotated yet: an owner with a key from createOwnerWriteKey can't write to or sync with relays that already store its previous key.