NativeSecp256k1.verify

Verifies the given secp256k1 signature in native code. Calling when enabled == false is undefined (probably library not loaded)

  1. bool verify(const(ubyte[]) msg, const(ubyte[]) signature, const(ubyte[]) pubkey)
    class NativeSecp256k1
    @trusted final const nothrow
    bool
    verify
    (
    const(ubyte[]) msg
    ,
    const(ubyte[]) signature
    ,
    const(ubyte[]) pubkey
    )
    in (pubkey.length == PUBKEY_SIZE)
  2. bool verify(const(ubyte[]) signature, const(ubyte[]) msg, const(secp256k1_pubkey) pubkey)

Parameters

msg const(ubyte[])

The message which was signed, must be exactly 32 bytes

signature const(ubyte[])

The signature

Meta