Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func X_g1Add ¶
X_g1Add mirrors EIP-196's ECADD precompile. Per EIP-196, short inputs are right-padded with zeros to 128 bytes; excess bytes are ignored.
The excess is normally already gone: bn254.gno's G1Add truncates to 128 bytes before calling in, because this native is priced flat and the dispatcher's Gno→Go copy is not. Keep that check there — the one below only covers Go callers, by which point the copy has happened.
func X_g1Mul ¶
X_g1Mul mirrors EIP-196's ECMUL precompile.
bn254.gno's G1Mul applies the same length check before calling in; see X_g1Add for why that matters.
func X_pairingCheck ¶
X_pairingCheck mirrors EIP-197's ECPAIRING precompile. An empty input reports "1" (product of zero pairings), matching the spec.
Types ¶
This section is empty.