Hex-encoded public key.
Hex-encoded private key.
Algorithm used for the last generation.
Whether a key generation is currently in progress.
Error from the last generation attempt, if any.
Generate a new key pair for the given algorithm.
Clear all reactive state.
Reactive state and methods returned by useKeypair.
Example