Skip to content

Support Multi-srp backups in SeedlessOnboardingController #5685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: feat/seedless-onboarding-controller
Choose a base branch
from
Draft
4 changes: 4 additions & 0 deletions packages/seedless-onboarding-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
"@metamask/keyring-controller": "^21.0.3",
"@noble/ciphers": "^0.5.2",
"@noble/curves": "^1.2.0",
"@noble/hashes": "^1.4.0",
Expand All @@ -70,6 +71,9 @@
"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "~5.2.2"
},
"peerDependencies": {
"@metamask/keyring-controller": "^21.0.0"
},
"engines": {
"node": "^18.18 || >=20"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class SeedPhraseMetadata implements ISeedPhraseMetadata {
/**
* Parse the seed phrase metadata from the metadata store and return the array of raw seed phrases.
*
* This method also sorts the seed phrases by timestamp in descending order, i.e. the newest seed phrase will be the first element in the array.
* This method also sorts the seed phrases by timestamp in ascending order, i.e. the oldest seed phrase will be the first element in the array.
*
* @param seedPhraseMetadataArr - The array of SeedPhrase Metadata from the metadata store.
* @returns The array of raw seed phrases.
Expand Down Expand Up @@ -141,7 +141,7 @@ export class SeedPhraseMetadata implements ISeedPhraseMetadata {
*/
static sort(
seedPhrases: SeedPhraseMetadata[],
order: 'asc' | 'desc' = 'desc',
order: 'asc' | 'desc' = 'asc',
): SeedPhraseMetadata[] {
return seedPhrases.sort((a, b) => {
if (order === 'asc') {
Expand Down
Loading
Loading