Constructor
new LockedSeedCipherPwHash(finishUnlockCb, salt, memLimit, opsLimit, header, cipher)
You won't use this directly, call UnlockedSeedBundle.fromLocked()
Parameters:
Name | Type | Description |
---|---|---|
finishUnlockCb |
function | the finishUnlock callback function |
salt |
Uint8Array | argon salt |
memLimit |
number | argon memLimit |
opsLimit |
number | argon opsLimit |
header |
Uint8Array | secretstream header |
cipher |
Uint8Array | secretstream cipher |
Methods
unlock(passphrase) → {UnlockedSeedBundle}
Unlock to an UnlockedSeedBundle
Parameters:
Name | Type | Description |
---|---|---|
passphrase |
PrivSecretBuf | parseSecret(Uint8Array) |
Returns:
- Type
- UnlockedSeedBundle