X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fbase58.cpp;h=f81ebf0c6f00ec861de52a6d0fb343040c12b227;hp=dc813abafa9d617cc37f001469841b59fff14f18;hb=d9a9ab764d542fe29e177ff600eff108269d0a57;hpb=510a23a2c838245cd4681ed0b4fbce48e8ebf506 diff --git a/src/base58.cpp b/src/base58.cpp index dc813ab..f81ebf0 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -48,7 +48,7 @@ std::string EncodeBase58(const unsigned char* pbegin, const unsigned char* pend) 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(); @@ -95,7 +95,7 @@ bool DecodeBase58(const char* psz, std::vector& vchRet) 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; }