Skip to content

Commit

Permalink
Merge pull request #290 from Tonomy-Foundation/feature/281-passphrase…
Browse files Browse the repository at this point in the history
…-words

Feature/281 passphrase words
  • Loading branch information
sadiabbasi authored Sep 5, 2023
2 parents b3d15f8 + 0482018 commit c0438a3
Show file tree
Hide file tree
Showing 7 changed files with 2,160 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Tonomy-Contracts
9 changes: 9 additions & 0 deletions src/sdk/controllers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { createStorage, PersistentStorageClean, StorageFactory, STORAGE_NAMESPAC
import { SdkErrors, throwError, SdkError } from '../util/errors';
import { AccountType, TonomyUsername } from '../util/username';
import { validatePassword } from '../util/passwords';
import { generateRandomKeywords, generateAutoSuggestions } from '../util/passphrase';
import { UserApps } from './userApps';
import { getSettings } from '../util/settings';
import { Communication } from '../services/communication/communication';
Expand Down Expand Up @@ -615,6 +616,14 @@ export class User {
}
}
}

generateRandomPassphrase(): string[] {
return generateRandomKeywords();
}

suggestPassphraseWord(inputWord: string): string[] {
return generateAutoSuggestions(inputWord);
}
}

/**
Expand Down
Loading

0 comments on commit c0438a3

Please sign in to comment.