Skip to content
Draft
Prev Previous commit
Next Next commit
refactor: Removed default dataType parameter from createToprfKeyAndBa…
…ckupSeedPhrase method
  • Loading branch information
huggingbot committed Dec 2, 2025
commit 85275f56407e4d0342f74565b587c83c379da193
1 change: 0 additions & 1 deletion packages/seedless-onboarding-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add optional `dataType` parameter to `createToprfKeyAndBackupSeedPhrase` method (defaults to `PrimarySrp` for backward compatibility)
- Add optional `dataType` parameter to `addNewSecretData` method for categorizing secret data on insert
- Add `updateSecretDataItem` method to update fields for existing items by `itemId`
- Add `batchUpdateSecretDataItems` method to batch update fields for multiple items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,12 @@ export class SeedlessOnboardingController<
* @param password - The password used to create new wallet and seedphrase
* @param seedPhrase - The initial seed phrase (Mnemonic) created together with the wallet.
* @param keyringId - The keyring id of the backup seed phrase
* @param dataType - Optional data type for categorizing the secret data. Defaults to PrimarySrp.
* @returns A promise that resolves to the encrypted seed phrase and the encryption key.
*/
async createToprfKeyAndBackupSeedPhrase(
password: string,
seedPhrase: Uint8Array,
keyringId: string,
dataType: EncAccountDataType = EncAccountDataType.PrimarySrp,
): Promise<void> {
return await this.#withControllerLock(async () => {
// to make sure that fail fast,
Expand All @@ -469,7 +467,7 @@ export class SeedlessOnboardingController<
authKeyPair,
options: {
keyringId,
dataType,
dataType: EncAccountDataType.PrimarySrp,
},
});

Expand Down