sign

Sign a message with your secret key.

@safe nothrow @nogc
ubyte[64]
sign
(
in ubyte[] m
,
in ubyte[] sk
,
in ubyte[] publicKey = null
)
in { assert (sk.length == 32, "Secret key must be 32 bytes."); if (publicKey !is null) { assert (publicKey.length == 32, "Public key must be 32 bytes."); } }

Parameters

m
Type: ubyte[]

message

sk
Type: ubyte[]

secret key

Meta