- snip -
hex private key to WIF using a mathematical
- snip -
There are two mathematical algorithms you'll need.
First you'll need to calculate SHA256. This is generally binary "math" consisting of the logic functions (and, or, xor, not) and shifting or rotating positions. You can find a description of the algorithm here:
https://en.wikipedia.org/wiki/SHA-2#PseudocodeThen you'll need to convert from base 16 (hex) to base 58.