mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-16 12:27:24 +00:00
Update BouncyCastle to 1.60.
This commit is contained in:
@@ -136,10 +136,8 @@ public class ECKey implements EncryptableItem {
|
||||
if (Utils.isAndroidRuntime())
|
||||
new LinuxSecureRandom();
|
||||
|
||||
// Tell Bouncy Castle to precompute data that's needed during secp256k1 calculations. Increasing the width
|
||||
// number makes calculations faster, but at a cost of extra memory usage and with decreasing returns. 12 was
|
||||
// picked after consulting with the BC team.
|
||||
FixedPointUtil.precompute(CURVE_PARAMS.getG(), 12);
|
||||
// Tell Bouncy Castle to precompute data that's needed during secp256k1 calculations.
|
||||
FixedPointUtil.precompute(CURVE_PARAMS.getG());
|
||||
CURVE = new ECDomainParameters(CURVE_PARAMS.getCurve(), CURVE_PARAMS.getG(), CURVE_PARAMS.getN(),
|
||||
CURVE_PARAMS.getH());
|
||||
HALF_CURVE_ORDER = CURVE_PARAMS.getN().shiftRight(1);
|
||||
|
||||
Reference in New Issue
Block a user