API reference › @evolu/common › local‑first/Owner › createShardOwner

function createShardOwner(
  secret: (
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16">)
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length24">)
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length32">)
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length20">)
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length28">)
  ) &
    Brand<"OwnerSecret">,
): ShardOwner;

Defined in: packages/common/src/local-first/Owner.ts:384

Creates a ShardOwner from an OwnerSecret.