Replace bitstring with big.Int.