WOTS.sign

Create a one-time signature for msg.

template WOTS(uint n, alias hash_n_n, alias prg, uint log_w)
package @safe @nogc pure nothrow
ubyte[sig_bytes]
sign
(
in ref H msg
,
in ref ubyte[seed_bytes] sk
,
in H[] masks
)
if (
is_hash_n_n!hash_n_n &&
is_prg!(prg, seed_bytes)
&&
n % 8 == 0
)

Parameters

msg H

The message to sign.

sk ubyte[seed_bytes]

The secret seed.

masks H[]

List of masks.

Return Value

Type: ubyte[sig_bytes]

Returns the signature.

Meta