minca
ApiCoreFunctions

Function: wrapSeedWithDeviceKey()

function wrapSeedWithDeviceKey(
   seed, 
   deviceKey, 
   meta
): Promise<DeviceWrap>;

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

Wraps a seed under this device's key; the passkey recorded beside it is a gate, not the key's source

Parameters

ParameterType
seedUint8Array
deviceKey{ id: string; key: CryptoKey; }
deviceKey.idstring
deviceKey.keyCryptoKey
meta{ credentialId?: string; label?: string; rpId: string; userHandle?: string; }
meta.credentialId?string
meta.label?string
meta.rpIdstring
meta.userHandle?string

Returns

Promise<DeviceWrap>

On this page