pub fn sig_encode<P: Params>(
c_tilde: &[u8],
z: &[[i32; 256]],
h: &[[i32; 256]],
) -> Vec<u8> ⓘExpand description
Encode a signature as bytes.
Implements Algorithm 26 of FIPS 204 (sigEncode). The signature is the
concatenation of c_tilde (lambda/4 bytes), the l polynomials of z
(each packed with 1 + bitlen(gamma1-1) bits per coefficient), and the
hint vector h (packed via hint_bit_pack).
c_tilde: commitment hash (lambda/4 bytes).z: response vector (l polynomials with coefficients in [-(gamma1-1), gamma1]).h: hint vector (k binary polynomials).
Returns a byte vector of length P::SIG_LEN.