Skip to main content

wots_pk_gen

Function wots_pk_gen 

Source
pub fn wots_pk_gen<P: Params>(
    sk_seed: &[u8],
    pk_seed: &[u8],
    adrs: &mut Adrs,
) -> Vec<u8> 
Expand description

Generate a WOTS+ public key.

Implements Algorithm 6 of FIPS 205. Derives len secret chain values from SK.seed via PRF, evaluates each chain to its full length (w - 1 steps), and compresses all len endpoints into a single n-byte public key using T_len.

The address adrs must have its key pair address set before calling.