我正在尝试按照本教程 https://learnmeabitcoin.com/technical/base58在 c 中制作 base58 解码器
To convert a base58 value in to base10,
you take each character index and multiply it with how many 58s that position in the number represents.
Then you just add all these values together.
base58 = BukQL
L = 19 * pow(58, 0) //= 19
Q = 23 * pow(58, 1) //= 1334
k = 43 * pow(58, 2) //= 144652
u = 52 * pow(58, 3) //= 10145824
B = 10 * pow(58, 4) //= 113164960
base10 = 19 + 1334 + 144652 + 10145824 + 113164960
base10 = 123456789
如您所见,只有 5 个字符,这个数字可能会非常大 BukQL = 113164960
如果字符串是BukQLKksdjkL7asSld = 11398419278238782..more
c 中没有类型可以存储如此大的数字怎么办。
这个问题的最佳解决方案是什么?