Always Copy User Private Key to prevent it getting wiped

This commit is contained in:
Samuel Lorch 2025-03-19 15:34:28 +01:00
parent 118dd9624b
commit 3376e521b9
2 changed files with 19 additions and 3 deletions

View file

@ -26,6 +26,7 @@ type Client struct {
// userPublicKey has been removed since it can be gotten from the private userPrivateKey
// be sure to make a copy since using ClearPrivateParams on a handler also wipes the key...
userPrivateKey *crypto.Key
userID string