WOTS.pkgen

Generate a public key.

template WOTS(uint n, alias hash_n_n, alias prg, uint log_w)
package @safe @nogc
H[l]
pkgen
pure nothrow
(
in ref ubyte[seed_bytes] sk
,
in H[] masks
)
in { assert (masks.length == w, "Number of masks must be w."); }
if (
is_hash_n_n!hash_n_n &&
is_prg!(prg, seed_bytes)
&&
n % 8 == 0
)

Return Value

Type: H[l]

The public key derived from sk and masks.

Meta