Hex-encoded public key, or null before generation.
Hex-encoded private key, or null before generation and after UseKeypairResult.clear. It is ordinary component state: any script on the page and React DevTools can read it, and JavaScript cannot wipe the string. Keep long-lived keys on a server.
Algorithm used for the last generated pair.
Generate a new key pair (optionally override the default algorithm).
True while a key pair is being generated.
Drop the key pair from state once it is no longer needed.
Return type of the useKeypair hook.
Example