API Reference / @evolu/common / Evolu/Internal / ShardOwner
Interface: ShardOwner
Defined in: packages/common/src/Evolu/Owner.ts:113
Used to shard data within an app for partial or deferred sync. Created in the
Evolu initialData
function or dynamically as needed. Its mnemonic is stored
in an app table (encrypted by AppOwner
) and synced between devices. Its
writeKey
is deterministic and rotatable, enabling selective syncing of data
subsets. Not intended for sharing outside the app.
This type omits id
, encryptionKey
, and createdAt
as they are derived by
Evolu from the mnemonic
, reducing storage overhead.
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
mnemonic | readonly | string & Brand <"Trimmed" > & Brand <"MinLength1" > & Brand <"Mnemonic" > | packages/common/src/Evolu/Owner.ts:115 |
type | readonly | "ShardOwner" | packages/common/src/Evolu/Owner.ts:114 |
writeKey | readonly | Uint8Array <ArrayBufferLike > & Brand <`Length${number & Brand<"Int"> & Brand<"NonNegative">}` > & Brand <"WriteKey" > | packages/common/src/Evolu/Owner.ts:116 |