Skip to content

Commit

Permalink
fix: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Feb 29, 2024
1 parent f41f00b commit c635778
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2047,26 +2047,6 @@ class ThresholdKey implements ITKey {
private async initializeModules() {
return Promise.all(Object.keys(this.modules).map((x) => this.modules[x].initialize()));
}

//
// private async generateSaltAndEncrypted(privKey: BN): Promise<{ salt: string; encryptedSalt: EncryptedMessage }> {
// if (!privKey) {
// throw CoreError.privateKeyUnavailable();
// }

// const salt = generateSalt();
// const encryptedSalt = await encrypt(getPubKeyECC(privKey), Buffer.from(salt, "hex"));
// return { salt, encryptedSalt };
// }

// private async getAccountSalt(privKey: BNString): Promise<string | undefined> {
// if (this._accountSalt) return this._accountSalt;
// if (Object.keys(this.metadata.encryptedSalt).length) {
// const decryptedSalt = await decrypt(toPrivKeyECC(privKey), this.metadata.encryptedSalt as EncryptedMessage);
// return decryptedSalt.toString("hex");
// }
// return undefined;
// }
}

export default ThresholdKey;

0 comments on commit c635778

Please sign in to comment.