Methods
getCryptoSectionAsJSON
- getCryptoSectionAsJSON(): any
Returns any
toJSON
- toJSON(addressHrp?: string): any
Parameters
Optional
addressHrp: string
Returns any
toJSONWhenKindIsMnemonic
- toJSONWhenKindIsMnemonic(): any
Returns any
Static
decrypt
- decrypt(
keyFileObject: any,
password: string,
addressIndex?: number,
): UserSecretKey Parameters
- keyFileObject: any
- password: string
Optional
addressIndex: number
Static
decryptMnemonic
- decryptMnemonic(keyFileObject: any, password: string): Mnemonic
Parameters
- keyFileObject: any
- password: string
Static
decryptSecretKey
- decryptSecretKey(keyFileObject: any, password: string): UserSecretKey
Parameters
- keyFileObject: any
- password: string
Static
fromMnemonic
- fromMnemonic(
__namedParameters: {
mnemonic: string;
password: string;
randomness?: IRandomness;
},
): UserWallet Parameters
- __namedParameters: { mnemonic: string; password: string; randomness?: IRandomness }
Static
fromSecretKey
- fromSecretKey(
__namedParameters: {
password: string;
randomness?: IRandomness;
secretKey: UserSecretKey;
},
): UserWallet Parameters
- __namedParameters: { password: string; randomness?: IRandomness; secretKey: UserSecretKey }
Converts the encrypted keyfile to plain JavaScript object.