Discover Packages
github.com/gnolang/gno
gnovm
stdlibs
crypto
modexp
package
Version:
v0.0.0
Opens a new window with list of versions in this module.
Published: Sep 19, 2026
License:
UNKNOWN
not legal advice
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func X_modExp(base, exp, modulus []byte ) []byte
X_modExp mirrors EIP-198's MODEXP precompile.
Operands longer than maxOperandLen yield nil, matching how the sibling
EIP-precompile natives (crypto/bn254, crypto/merkle) report inputs outside
their contract.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.