dcrypt ~master (2018-06-04T17:07:07Z)
Dub
Repo
sign
dcrypt
ecc
ed25519
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
Source
See Implementation
dcrypt
ecc
ed25519
functions
secret_to_public
sign
verify
Sign a message with your secret key.