API Reference / @evolu/common / Evolu/Internal / createShardOwner

Function: createShardOwner()

function createShardOwner(deps): ShardOwner;

Defined in: packages/common/src/Evolu/Owner.ts:165

Creates a ShardOwner for sharding app data with a freshly generated mnemonic. Unlike createAppOwner, it doesn’t accept an existing mnemonic because ShardOwner mnemonics are always generated and restored automatically via database sync.

Parameters

ParameterType
depsTimeDep & CreateRandomBytesDep & CreateMnemonicDep

Returns

ShardOwner

Was this page helpful?