NativeSecp256k1.sign

Create a Schnorr signature.

  1. immutable(ubyte[]) sign(const(ubyte[]) msg, const(ubyte[]) keypair, const(ubyte[]) aux_random)
    class NativeSecp256k1
    @trusted final const pure
    immutable(ubyte[])
    sign
    (
    const(ubyte[]) msg
    ,
    scope const(ubyte[]) keypair
    ,
    scope const(ubyte[]) aux_random
    )
    in (aux_random.length == MESSAGE_SIZE)
  2. immutable(ubyte[]) sign(const(ubyte[]) msg, const(ubyte[]) keypair)

Parameters

msg const(ubyte[])

Message hash, 32 bytes

aux_random const(ubyte[])

32 bytes random nonce Return: sig byte array of signature