pub(crate) fn uint_to_be_pad( input: BigUint, padded_len: usize, ) -> Result<Vec<u8>>
Converts input to the new vector of the given length, using BE and with 0s left padded.