decode

Function decode 

Source
pub fn decode(data: &[u8]) -> Result<BigInt>
Expand description

Decode a BigInt from canonical binary format.

Validates that the encoding is canonical:

  • Zero must have sign=0, n=1, limbs[0]=0
  • No leading zeros for nonzero values
  • Sign consistency