Skip to content

Add TIP-871: Canonicalize MODEXP output length when modulus is zero#888

Merged
Benson0224 merged 1 commit into
tronprotocol:masterfrom
yanghang8612:tip-871-last-call
Jun 5, 2026
Merged

Add TIP-871: Canonicalize MODEXP output length when modulus is zero#888
Benson0224 merged 1 commit into
tronprotocol:masterfrom
yanghang8612:tip-871-last-call

Conversation

@yanghang8612

Copy link
Copy Markdown
Contributor

Adds TIP-871 (tip-871.md) at Last Call.

  • What: canonicalize the MODEXP precompile (0x…05) to return modLen zero bytes for an all-zero modulus with modLen > 0, instead of empty output — aligning with EIP-198 and all major Ethereum clients.
  • Gating: behind ALLOW_TVM_OSAKA (proposal id 96), shipping with the Osaka VM batch (TIP-7883 / TIP-854 / TIP-7951 / TIP-7939 / EIP-7823). No new proposal id.
  • Implementation: merged in java-tron via fix(vm): canonicalize ModExp zero modulus output (TIP-871) java-tron#6780 (into release_v4.8.2), with direct Osaka MODEXP tests, a Solidity 0.8.25 VM-level reproduction, a gas regression, and frozen geth/Besu differential fixtures. Gas unchanged, cross-client output parity confirmed.
  • Discussion: TIP-871: Canonicalize MODEXP output length when modulus is zero #871

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants