Documentation
Tagion
NativeSecp256k1.verify
tagion
crypto
secp256k1
NativeSecp256k1
NativeSecp256k1
Verifies a Schnorr signature
class
NativeSecp256k1
@
trusted
final const nothrow pure
bool
verify
(
const
(
ubyte
[])
msg
,
const
(
ubyte
[])
signature
,
const
(
ubyte
[])
pubkey
)
in (signature.length == SIGNATURE_SIZE)
Parameters
msg
const
(
ubyte
[])
The message which was signed, must be exactly 32 bytes
signature
const
(
ubyte
[])
The signature
tagion
crypto
secp256k1
NativeSecp256k1
NativeSecp256k1
destructors
~this
functions
createECDHSecret
getPubkey
privTweak
randomizeContext
sign
verify
Verifies a Schnorr signature