You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a similar issue as #1431 (comment) so I was attempting to resolve the issue using the recommended code snippet. That code snippet calls clearPrivateParams()
I see, IMO it's too much of a corner case to justify "exposing" that specific method via TS, as it's easy to misuse, and automatically called internally for the standard cases. That said, there is a good case to add the higher level PrivateKey.clearPrivateParams() type , as it can be used to remove traces of the key material from memory when an app is exiting (without re-encrypting the keys), for instance.
If you're up for it, a PR adding the type definition is welcome 😄
The typescript definitions for PrivateKey is missing the
clearPrivateParams()
functionThe same is also true for the typescript definition of SecretKeyPacket.
The text was updated successfully, but these errors were encountered: