File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -2047,26 +2047,6 @@ class ThresholdKey implements ITKey {
2047
2047
private async initializeModules ( ) {
2048
2048
return Promise . all ( Object . keys ( this . modules ) . map ( ( x ) => this . modules [ x ] . initialize ( ) ) ) ;
2049
2049
}
2050
-
2051
- //
2052
- // private async generateSaltAndEncrypted(privKey: BN): Promise<{ salt: string; encryptedSalt: EncryptedMessage }> {
2053
- // if (!privKey) {
2054
- // throw CoreError.privateKeyUnavailable();
2055
- // }
2056
-
2057
- // const salt = generateSalt();
2058
- // const encryptedSalt = await encrypt(getPubKeyECC(privKey), Buffer.from(salt, "hex"));
2059
- // return { salt, encryptedSalt };
2060
- // }
2061
-
2062
- // private async getAccountSalt(privKey: BNString): Promise<string | undefined> {
2063
- // if (this._accountSalt) return this._accountSalt;
2064
- // if (Object.keys(this.metadata.encryptedSalt).length) {
2065
- // const decryptedSalt = await decrypt(toPrivKeyECC(privKey), this.metadata.encryptedSalt as EncryptedMessage);
2066
- // return decryptedSalt.toString("hex");
2067
- // }
2068
- // return undefined;
2069
- // }
2070
2050
}
2071
2051
2072
2052
export default ThresholdKey ;
You can’t perform that action at this time.
0 commit comments