API reference › @evolu/common › local‑first/Owner › ShardOwner
Defined in: packages/common/src/local-first/Owner.ts:243
An Owner for sharding data.
ShardOwners are the recommended storage location for most application data because they can be completely deleted (both on relays and devices) and conditionally synced.
Can be created from OwnerSecret via createShardOwner or deterministically derived from AppOwner using deriveShardOwner.
Extends
Properties
encryptionKey
readonly encryptionKey: Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length32"> & Brand<"EncryptionKey"> & Brand<"OwnerEncryptionKey">;
Defined in: packages/common/src/local-first/Owner.ts:41
TODO: Wrap with Redacted in the next major version.
Inherited from
id
readonly id: string & Brand<"Id"> & Brand<"OwnerId">;
Defined in: packages/common/src/local-first/Owner.ts:39
Inherited from
type
readonly type: "ShardOwner";
Defined in: packages/common/src/Type.ts:3492
Inherited from
writeKey
readonly writeKey: Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey">;
Defined in: packages/common/src/local-first/Owner.ts:77
TODO: Wrap with Redacted in the next major version.