Constructors
constructor
- new Seed(phrase: string, chainId?: undefined | string): Seed
-
Parameters
-
phrase: string
-
Optional chainId: undefined | string
Methods
encrypt
- encrypt(password: string, encryptionRounds?: undefined | number): string
-
Parameters
-
password: string
-
Optional encryptionRounds: undefined | number
Returns string
Static create
- create(words?: number): Seed
-
Parameters
-
Default value words: number = 15
Static decryptSeedPhrase
- decryptSeedPhrase(encryptedSeedPhrase: string, password: string, encryptionRounds?: number): string
-
Parameters
-
encryptedSeedPhrase: string
-
password: string
-
Default value encryptionRounds: number = 5000
Returns string
Static encryptSeedPhrase
- encryptSeedPhrase(seedPhrase: string, password: string, encryptionRounds?: number): string
-
Parameters
-
seedPhrase: string
-
password: string
-
Default value encryptionRounds: number = 5000
Returns string
Static fromExistingPhrase
- fromExistingPhrase(phrase: string): Seed