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