Password to encrypt the private key.
Export the keypair to a encrypt base64 fromatted text string. The private key is encrypted using the provided password.
Password to encrypt the private key.
The encrpted private key as a encrypted base64 formatted string.
Sign a hash message. This is called by the convex API class to sign a hash returned from the prepare
api.
This signed message cryptographically proves that the keypair owner has access to the private key.
The API calls this with a hex string, that is converted to bytes, and then sigend. The resultant signed data is sent back as a hex string.
Text hex string to sign
A hex string signed with a prefix of '0x'
Creates a new keypair
a new KeyPair Object
Imports a private key file. The key file is in the format as a encrpted base64 text. The private key is encrypted.
Filename containing the encrypted private key.
Password to decrypt the private key.
An KeyPair object with the private and public keys.
Imports a keypair from a encrypted base64 text string. You need to pass the correct password, to decrypt the private key stored in the text string.
Encrpted base64 fromated text with the private key encrypted.
Password to decrypt the private key.
an KeyPair object with the private and public key pairs.
Generated using TypeDoc
Same as
exportToText
this writes the exported text to a file.