Encapsulates a PublicKey and a PrivateKey object as a single KeyPair object. KeyPair
Creates an instance of KeyPair. Must provide a at least a private key. Can optionally provide btoh a private and public key, but must be a valid pair.
The private key object
Set the PrivateKey.
The PrivateKey object
IKeyPair.privateKey
If the private key is not available
Get the PublicKey.
The PublicKey object
IKeyPair.publicKey
Set the PublicKey.
JSON representation of a KeyPair.
The KeyPair as a JSON object
IKeyPair.json
Encapsulates a PublicKey and a PrivateKey object as a single KeyPair object. KeyPair