Sphincs.pubkey

Compute the public key given the secret key.

template Sphincs(uint n, uint m, uint n_levels, uint subtree_height, alias hash_n_n, alias hash_2n_n, alias prg)
@safe @nogc
ubyte[publickey_bytes]
pubkey
pure nothrow
(
in ref ubyte[secretkey_bytes] sk
)
if (
is_hash_n_n!hash_n_n &&
is_hash_2n_n!hash_2n_n
&&
is_prg!(prg, seed_bytes)
&&
n % 8 == 0
)

Return Value

Type: ubyte[publickey_bytes]

The matching public key.

Meta