box_pubkey

Generate a public key from a secret key.

ubyte[32]
box_pubkey
nothrow @safe @nogc
(
in ubyte[] secret_key
)
in { assert (secret_key.length == 32, "Secret key must be 32 bytes."); }

Parameters

secret_key
Type: ubyte[]

A 32 byte secret key, choosen randomly.

Return Value

Type: ubyte[32]

Returns the public key matching to the given secret key.

Meta