changes after self-review

This commit is contained in:
ennmichael
2023-02-27 14:35:36 +01:00
parent 303fa2ff4b
commit 5d66ad9165
3 changed files with 58 additions and 13 deletions

View File

@ -43,8 +43,10 @@ export class PrivateKey {
return new PublicKey(secp.schnorr.getPublicKey(this.#hex))
}
// TODO Document this
leak(): string {
/**
* The hex representation of the private key. Use with caution!
*/
hexDangerous(): string {
return this.#hex
}
}