CBigNum rem;
while (bn > bn0)
{
- if (!BN_div(&dv, &rem, &bn, &bn58, pctx))
+ if (!BN_div(dv.get(), rem.get(), bn.get(), bn58.get(), pctx))
throw bignum_error("EncodeBase58 : BN_div failed");
bn = dv;
unsigned int c = rem.getuint32();
break;
}
bnChar.setuint32((uint32_t)(p1 - pszBase58));
- if (!BN_mul(&bn, &bn, &bn58, pctx))
+ if (!BN_mul(bn.get(), bn.get(), bn58.get(), pctx))
throw bignum_error("DecodeBase58 : BN_mul failed");
bn += bnChar;
}