Constructor
new KeyPair(privateKey)
Creates a key pair from a private key.
Parameters:
Name | Type | Description |
---|---|---|
privateKey |
PrivateKey | Private key. |
- Source:
Members
privateKey
Gets the private key.
- Source:
privateKey
Gets the private key.
- Source:
publicKey
Gets the public key.
- Source:
publicKey
Gets the public key.
- Source:
Methods
sign(message) → {Signature}
Signs a message with the private key.
Parameters:
Name | Type | Description |
---|---|---|
message |
Uint8Array | Message to sign. |
- Source:
Returns:
Message signature.
- Type
- Signature
sign(message) → {Signature}
Signs a message with the private key.
Parameters:
Name | Type | Description |
---|---|---|
message |
Uint8Array | Message to sign. |
- Source:
Returns:
Message signature.
- Type
- Signature