Well, since you're using this for a mining server, you'll need a base-10 version of my bignum library, which I should be able to code without too much hassle. It won't support division (by anything but powers of 10) or modulus, though, so keep that in mind. You'll have addition, subtraction, and multiplication by any size number. I'll include a little documentation to help you use it.