pub fn encode(bi: &BigInt) -> Vec<u8>
Encode a BigInt to canonical binary format.
Format: [sign: u8][limb_count: u32 LE][limbs: u64[] LE]