Skip to content

Commit c635778

Browse files
committed
fix: clean up
1 parent f41f00b commit c635778

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

packages/core/src/core.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,26 +2047,6 @@ class ThresholdKey implements ITKey {
20472047
private async initializeModules() {
20482048
return Promise.all(Object.keys(this.modules).map((x) => this.modules[x].initialize()));
20492049
}
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-
// }
20702050
}
20712051

20722052
export default ThresholdKey;

0 commit comments

Comments
 (0)