KeyPair⚓︎
- KeyPair
- Represents an ED25519 private and public key.
Constructors⚓︎
new KeyPair()⚓︎
Creates a key pair from a private key.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
privateKey |
PrivateKey |
Private key. |
Returns⚓︎
KeyPair
Accessors⚓︎
privateKey⚓︎
Get Signature⚓︎
- KeyPair.privateKey
- Gets the private key.
Returns⚓︎
Private key.
publicKey⚓︎
Get Signature⚓︎
- KeyPair.publicKey
- Gets the public key.
Returns⚓︎
Public key.
Methods⚓︎
sign()⚓︎
- KeyPair.sign
- Signs a message with the private key.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
message |
Uint8Array |
Message to sign. |
Returns⚓︎
Message signature.