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

function mnemonicToOwnerSecret(
  mnemonic: string & Brand<"Trimmed"> & Brand<"MinLength1"> & Brand<"Mnemonic">,
):
  | (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">);

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

Converts a Mnemonic to the OwnerSecret it represents.