new Schnorr()
- Description:
Schnorr signature implementation (BIP340)
- Source:
Methods
(async) sign(privateKey, message, auxRandopt) → {Promise.<Object>}
- Description:
Sign a message hash with Schnorr
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
privateKey |
string | Buffer | 32-byte private key |
||
message |
string | Buffer | 32-byte message hash |
||
auxRand |
Buffer |
<optional> |
null
|
Optional auxiliary randomness |
Returns:
Signature with r, s, signature, messageHash
- Type
- Promise.<Object>