Constructor
new LockedSeedCipherSecurityQuestions(finishUnlockCb, salt, memLimit, opsLimit, questionList, 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 |
questionList |
Array.<string> | the list of security questions |
header |
Uint8Array | secretstream header |
cipher |
Uint8Array | secretstream cipher |
Methods
getQuestionList() → {Array.<string>}
List the security questions that should be answered.
Returns:
- Type
- Array.<string>
unlock(answers) → {UnlockedSeedBundle}
Unlock to an UnlockedSeedBundle
Parameters:
| Name | Type | Description |
|---|---|---|
answers |
Array.<PrivSecretBuf> | 3 security answers (parseSecret(Uint8Array)) |
Returns:
- Type
- UnlockedSeedBundle