Class: LockedSeedCipherSecurityQuestions

hcSeedBundle.LockedSeedCipherSecurityQuestions(finishUnlockCb, salt, memLimit, opsLimit, questionList, header, cipher)

Unlock a SeedCipher with three security question answers.

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
Source:

Methods

getQuestionList() → {Array.<string>}

List the security questions that should be answered.
Source:
Returns:
Type
Array.<string>

unlock(answers) → {UnlockedSeedBundle}

Unlock to an UnlockedSeedBundle
Parameters:
Name Type Description
answers Array.<PrivSecretBuf> 3 security answers (parseSecret(Uint8Array))
Source:
Returns:
Type
UnlockedSeedBundle