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

PropertyModifierTypeDescriptionInherited fromDefined in
encryptionKeyreadonlyUint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length32"> & Brand<"EncryptionKey"> & Brand<"OwnerEncryptionKey">TODO: Wrap with Redacted in the next major version.Owner.encryptionKeypackages/common/src/local-first/Owner.ts:32
idreadonlystring & Brand<"Id"> & Brand<"OwnerId">-Owner.idpackages/common/src/local-first/Owner.ts:30
typereadonly"ShardOwner"--packages/common/src/local-first/Owner.ts:218
writeKeyreadonlyUint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey">TODO: Wrap with Redacted in the next major version.Owner.writeKeypackages/common/src/local-first/Owner.ts:68

Was this page helpful?