feat(std-lib): TxUtils tx-context helpers (isSeismicTx / isSignedRead) - #232
Open
HenryMBaldwin wants to merge 3 commits into
Open
feat(std-lib): TxUtils tx-context helpers (isSeismicTx / isSignedRead)#232HenryMBaldwin wants to merge 3 commits into
HenryMBaldwin wants to merge 3 commits into
Conversation
Add TxUtils reading the 0x6A tx-context precompile via staticcall (no ssolc builtin): txType(), isSeismicTx(), isSignedRead(), fail-closed on an unavailable precompile/selector, with sharpened NatSpec. Include the signed-reads doc update (provisional signed-read twin with fresh encryption metadata) and runtime tests.
HenryMBaldwin
force-pushed
the
hbai__txtype-precompile
branch
from
August 24, 2026 19:05
ec8a44d to
0ae237e
Compare
… (P2.1/P2.2) NatSpec: isSignedRead() reports a node classification; it does not itself authenticate or authorize the caller, and is not a confidentiality guarantee. Test: vm.signedRead(true) with a non-Seismic tx type still reads false, so vm.txType(0x4A) must be paired with it (isSignedRead implies isSeismicTx).
…Tx() for a mined write
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TxUtilshelpers for the tx-context feature. Companion PRs: revm #227, evm #58, reth #457, foundry #220.TxUtils.txType()/isSeismicTx()/isSignedRead()read the0x6Aprecompile viastaticcall— stock Solidity, no ssolc builtin. Fail-closed on an unavailable precompile/selector or wrong return length.isSignedRead()impliesisSeismicTx(); NatSpec states it reports a node classification, not caller authorization or a confidentiality guarantee.Note: the CI
contracts-testjob is red until the installed sforge includes the0x6Aprecompile and thevm.txType/vm.signedReadcheatcodes; the suite passes 7/7 against an sforge built from foundry #220.