pub fn pk_encode<P: Params>(rho: &[u8; 32], t1: &[[i32; 256]]) -> Vec<u8> ⓘExpand description
Encode a public key as bytes.
Implements Algorithm 22 of FIPS 204 (pkEncode). The public key consists
of the 32-byte seed rho followed by the k polynomials of t1, each
packed with 10 bits per coefficient (since t1 values lie in [0, 1023]).
rho: 32-byte public seed for matrix A generation.t1: vector of k polynomials (the high bits of t).
Returns a byte vector of length P::PK_LEN.