From 389620cbc85910428a9084c1432cf94b8e71069e Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Thu, 10 Jul 2025 15:28:42 +0100 Subject: [PATCH] switch to gmp --- crypto/modexp/modexp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/modexp/modexp.go b/crypto/modexp/modexp.go index 2fe383f2ac..34028f0650 100644 --- a/crypto/modexp/modexp.go +++ b/crypto/modexp/modexp.go @@ -1,7 +1,7 @@ package modexp import ( - "github.com/ethereum/go-ethereum/crypto/modexp/bigint" + "github.com/ethereum/go-ethereum/crypto/modexp/gmp" ) // ModExp performs modular exponentiation on byte arrays @@ -9,5 +9,5 @@ import ( // This uses the bigint implementation by default. // To use GMP implementation, import crypto/modexp/gmp directly. func ModExp(base, exp, mod []byte) ([]byte, error) { - return bigint.ModExp(base, exp, mod) + return gmp.ModExp(base, exp, mod) } \ No newline at end of file