From f8cd00314efa17a3e220c12cbe7f8286aeda6bd9 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Tue, 8 Jul 2025 22:45:56 +0100 Subject: [PATCH] cleanup readme --- crypto/modexp/gmp/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crypto/modexp/gmp/README.md b/crypto/modexp/gmp/README.md index 34ae8f1cba..581fa6e885 100644 --- a/crypto/modexp/gmp/README.md +++ b/crypto/modexp/gmp/README.md @@ -15,9 +15,9 @@ You need to have GMP development libraries installed on your system: ## Usage -This package provides a GMP-backed implementation for modular exponentiation using direct C calls for maximum performance. The API can be expanded, however right now, the main usage is for the modexp precompile. +This package provides a GMP-backed implementation for modular exponentiation using a direct C call to avoid multiple calls to cgo. The main usage is for the modexp precompile. -### Byte Array Interface (Recommended) +### Byte Array Interface ```go import "github.com/ethereum/go-ethereum/crypto/modexp/gmp" @@ -33,8 +33,6 @@ if err != nil { // result = 24 (2^10 mod 1000) ``` - - ## Testing Run tests from the go-ethereum root directory: