Moves to non-deterministic signatures
This commit is contained in:
@@ -38,9 +38,14 @@ class Nip01(
|
||||
fun sign(
|
||||
data: ByteArray,
|
||||
privKey: ByteArray,
|
||||
auxrand32: ByteArray? = null,
|
||||
auxrand32: ByteArray? = random(32),
|
||||
): ByteArray = secp256k1.signSchnorr(data, privKey, auxrand32)
|
||||
|
||||
fun signDeterministic(
|
||||
data: ByteArray,
|
||||
privKey: ByteArray,
|
||||
): ByteArray = secp256k1.signSchnorr(data, privKey, null)
|
||||
|
||||
fun verify(
|
||||
signature: ByteArray,
|
||||
hash: ByteArray,
|
||||
|
||||
Reference in New Issue
Block a user