API reference / @evolu/common / local-first / ShardOwner
Interface: ShardOwner
Defined in: packages/common/src/local-first/Owner.ts:217
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
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
encryptionKey | readonly | Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length32"> & Brand<"EncryptionKey"> & Brand<"OwnerEncryptionKey"> | TODO: Wrap with Redacted in the next major version. | Owner.encryptionKey | packages/common/src/local-first/Owner.ts:32 |
id | readonly | string & Brand<"Id"> & Brand<"OwnerId"> | - | Owner.id | packages/common/src/local-first/Owner.ts:30 |
type | readonly | "ShardOwner" | - | - | packages/common/src/local-first/Owner.ts:218 |
writeKey | readonly | Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey"> | TODO: Wrap with Redacted in the next major version. | Owner.writeKey | packages/common/src/local-first/Owner.ts:68 |