minca
ApiCoreFunctions

Function: createVault()

function createVault(params): AccountVault;

Defined in: packages/core/src/identity/account-vault.ts:179

Assembles a fresh locked account; generates nothing and writes nothing.

Parameters

ParameterTypeDescription
params{ did: string; label?: string; wraps: readonly SeedWrap[]; }-
params.didstring-
params.label?string-
params.wrapsreadonly SeedWrap[]May be empty: the recovery code is the seed, and opens it with nothing stored

Returns

AccountVault

On this page