Skip to content

feat(v1)!: migrate ECDSA/BLS coordinates to padded Hex.Hex - #247

Merged
jxom merged 1 commit into
v1from
jxom/v1-hex-coords
May 13, 2026
Merged

jxom merged 1 commit into
v1from
jxom/v1-hex-coords

Conversation

@jxom

@jxom jxom commented May 13, 2026

Copy link
Copy Markdown
Member

Migrates ECDSA and BLS coordinate fields (r, s, x, y, BLS Fp/Fp2) from bigint to padded Hex.Hex strings to remove a serialization round-trip on every signature/public-key boundary.

- Signature.from({ r: 0x6e10...n, s: 0x4a90...n, yParity: 1 })
+ Signature.from({
+   r: '0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf',
+   s: '0x4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db8',
+   yParity: 1,
+ })

All entry points pad to 32 bytes for secp256k1/P256/WebAuthnP256 and 48 bytes for BLS12-381. Signature.from*, PublicKey.from*, SignatureEnvelope.fromRpc, and the various binary deserializers all funnel through Hex.padLeft (or 32-byte slices) so the invariant holds regardless of input shape. The bigintType generic on Signature, PublicKey, and the Tempo SignatureEnvelope / ZoneRpcAuthentication / TxEnvelopeTempo types was dropped.

Internal hot paths replaced redundant Hex.fromNumber(BigInt(hex), { size: 32 }) round-trips with direct Hex.padLeft(hex, 32) calls. The remaining BigInt(...) sites are at noble curve boundaries (secp256k1.Signature ctor, bls.Point ctor, low-s check) where bigints are intrinsically required.

Use Hex.toBigInt(hex) when bigint arithmetic is needed and Hex.fromNumber(n, { size: 32 }) to migrate ad-hoc bigint values.

@vercel

vercel Bot commented May 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ox Error Error May 13, 2026 10:08pm

Request Review

@jxom
jxom merged commit 6a2f0d5 into v1 May 13, 2026
9 of 11 checks passed
@jxom
jxom deleted the jxom/v1-hex-coords branch May 13, 2026 22:08
jxom added a commit that referenced this pull request May 14, 2026
…lures

Wipe `site/pages/{api,ercs,tempo,webauthn}` at the start of `scripts/docgen/build.ts` so orphaned files from prior runs don't get picked up by Vocs/Twoslash. The Hex coordinate migration left stale `bigint` examples in pages that no longer regenerate (e.g. `api/Transaction`, `api/RpcSchema`) because tempo's namespaces shadow core's in the docgen lookup.

Patch `[email protected]` to use `moduleResolution: bundler` so `ox/window` resolves in Twoslash, repoint `api-extractor` at `dist/`, and update guides/JSDoc examples to use the padded Hex string shape introduced in #247.

Amp-Thread-ID: https://ampcode.com/threads/T-019e2417-f962-73b6-ae52-1e0a83106e57
jxom added a commit that referenced this pull request May 14, 2026
After the Hex coordinate migration in #247, `Signature`, `PublicKey`, and `BlsPoint` already store their structured parts in their canonical shape, so `fromParts` / `toParts` (and the `Parts` / `G1Parts` / `G2Parts` aliases) collapse to identity helpers. Drop them along with their tests and the unreleased changeset that introduced them.

Amp-Thread-ID: https://ampcode.com/threads/T-019e2417-f962-73b6-ae52-1e0a83106e57
jxom added a commit that referenced this pull request Jul 13, 2026
* wip: v1

Amp-Thread-ID: https://ampcode.com/threads/T-019e0423-2129-734a-8c3f-314d3aab0bbd

* chore: format exports:update.ts

Amp-Thread-ID: https://ampcode.com/threads/T-019e0423-2129-734a-8c3f-314d3aab0bbd

* chore: upgrade noble and scure deps to v2

Bumps @noble/ciphers, @noble/curves, @noble/hashes, @scure/bip32,
and @scure/bip39 to v2 and refactors crypto wrappers to the new APIs
(Uint8Array signatures, Point.fromBytes, Signature.fromBytes/toBytes,
bls.longSignatures, randomSecretKey, .js import extensions).

Adds an internal helper for converting between ox's { r, s, yParity }
Signature shape and noble's compact/recovered byte layouts. Restores
ImportMeta.env types for tests now that vitest v4 dropped them.

Amp-Thread-ID: https://ampcode.com/threads/T-019e05c5-ba3e-711e-8ea5-532440226027

* chore: changeset for noble v2 upgrade

Amp-Thread-ID: https://ampcode.com/threads/T-019e05c5-ba3e-711e-8ea5-532440226027

* chore: upgrade noble and scure deps to v2

Bumps @noble/ciphers, @noble/curves, @noble/hashes, @scure/bip32,
and @scure/bip39 to v2 and refactors crypto wrappers to the new APIs
(Uint8Array signatures, Point.fromBytes, Signature.fromBytes/toBytes,
bls.longSignatures, randomSecretKey, .js import extensions).

Adds an internal helper for converting between ox's { r, s, yParity }
Signature shape and noble's compact/recovered byte layouts. Restores
ImportMeta.env types for tests now that vitest v4 dropped them.

Amp-Thread-ID: https://ampcode.com/threads/T-019e05c5-ba3e-711e-8ea5-532440226027

* fix: include blockTimestamp on transactions

The tempo node returns a blockTimestamp on transaction responses; add
it to the core Transaction type, parse it in fromRpc, and serialize it
in toRpc. Updates the tempo e2e tests to assert it on transactions
returned via Transaction.fromRpc.

Amp-Thread-ID: https://ampcode.com/threads/T-019e05c5-ba3e-711e-8ea5-532440226027

* chore: switch to zile publish helpers and ignore tasks/

Amp-Thread-ID: https://ampcode.com/threads/T-019e1976-9c6f-745e-87d8-d00af1fe5aaf

* fix(mnemonic): return Bytes by default from toPrivateKey to match declared type

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a57e8955ff21

* fix(keystore): use pbkdf2Async in toKeyAsync to avoid blocking the main thread

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a57e8955ff21

* fix(tempo): make PoolId.from order-independent

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165

* fix(tempo): generate 192-bit nonceKey when 'random' is requested

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165

* fix(keystore): honor caller-provided p and r in scryptAsync

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a57e8955ff21

* fix(abi): honor anonymous flag in AbiEvent encode/decode

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-9d2614e4f981

* fix(crypto): pad WebCryptoP256.verify r/s to 32 bytes

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-99b84f570f29

* fix(tempo): normalize AuthorizationTempo.from signature option through SignatureEnvelope.from

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165

* fix(publickey): reject malformed shape when compressed option is set

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-99b84f570f29

* fix(tempo): apply AuthorizationTempo.from signature normalization

Implementation for the changeset added in 2b32e0c (the source change was lost in a concurrent stash on the previous commit).

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165

* fix(publickey): validate SEC1 prefix in fromHex/fromBytes

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-99b84f570f29

* fix(value): validate decimals and use string-carry rounding in from()

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b2649a371d7f

* fix(abi): assert AbiConstructor.decode bytecode prefix

* fix(bls): validate input shape in Bls.aggregate

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-99b84f570f29

* fix(tempo): validate envelope-type prefix in TxEnvelopeTempo.deserialize

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165

* fix(webauthn): decode clientDataJSON as UTF-8 in Authentication.sign

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-bc30fc2dfd83

* fix(transactions): remove duplicate maxPriorityFeePerGas assignment in TransactionRequest.toRpc

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a8a740d3ed8f

* fix(blspoint): honor group argument and assert byte length in fromBytes

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-99b84f570f29

* fix(keystore): reject trivially weak PBKDF2 and scrypt parameters

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a57e8955ff21

* fix(webauthn): honor hash option in Authentication.getSignPayload

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-bc30fc2dfd83

* fix(tempo): emit `calls[].input` from Transaction.toRpc to match TempoRpc schema

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165

* fix(webauthn): document Registration.verify attestation default as 'none'

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-bc30fc2dfd83

* test(abi): update AbiConstructor snapshots for BytecodeMismatchError

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-9d2614e4f981

* fix(keystore): apply KDF parameter validation to pbkdf2/scrypt entry points

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a57e8955ff21

* fix(transactions): clone caller input in TransactionRequest.fromRpc to avoid mutation

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a8a740d3ed8f

* fix(tempo): apply AuthorizationTempo.from signature normalization (retry)

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165

* fix(abi): wrap PositionOutOfBoundsError as DataSizeTooSmallError in AbiParameters.decode

* fix(authorization): return List instead of TupleList from fromTupleList type

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a8a740d3ed8f

* fix(webauthn): reject invalid AT/ED flag structures in Authentication.verify

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-bc30fc2dfd83

* fix(transactions): validate storage keys strictly in AccessList.fromTupleList

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a8a740d3ed8f

* fix(webauthn): reject invalid AT/ED flag structures in Authentication.verify (impl)

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-bc30fc2dfd83

* fix(abi): validate fixed-array length and pad string[]/bytes[] in AbiParameters.encodePacked

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-9d2614e4f981

* fix(transactions): preserve transactionIndex 0 in Transaction.toRpc

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a8a740d3ed8f

* fix(abi): always hash indexed string/bytes topics to hex in AbiEvent

* fix(block): throw MissingFieldError on required fields in fromRpc and preserve totalDifficulty as undefined

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b2649a371d7f

* fix(kzg): preserve receiver semantics in Kzg.from

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-99b84f570f29

* fix(abi): throw on selector-only calldata, fast event partition, reject trailing signature garbage

* fix(abi): hoist normalizeSignature loop counter to allow trailing-garbage check

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-9d2614e4f981

* fix(crypto): typed getSharedSecret error and JSDoc corrections

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-99b84f570f29

* fix(abi): drop string[]/bytes[] padding change to keep parity with viem

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-9d2614e4f981

* fix(filter): preserve explicit address: null and topics: null in toRpc

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b2649a371d7f

* fix(validator-data): assert validator address in encode

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b2649a371d7f

* fix(bloom): validate bloom length in contains

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b2649a371d7f

* fix(abi): revert normalizeSignature trailing-garbage check (clashes with valid Solidity modifiers)

* fix(types): satisfy strict types in block-state regression tests

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b2649a371d7f

* test(abi): update decode snapshots after wrapping PositionOutOfBoundsError

Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-9d2614e4f981

* revert(block): drop MissingFieldError throw from fromRpc, keep totalDifficulty undefined preservation

Per design preference: fromRpc methods should not make fields required.
Reverts the throw added in 9fdaeee4 while keeping the totalDifficulty=undefined fix.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1976-9c6f-745e-87d8-d00af1fe5aaf

* revert(tempo): keep `data` (not `input`) on calls[] in Transaction.toRpc

Reverts 62233c46. Tempo Transaction.calls[] uses `data`, not `input`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1976-9c6f-745e-87d8-d00af1fe5aaf

* fix(bytes,rlp): even-pad odd-nibble hex from `Hex.fromNumber` before strict parse

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* fix(transactions): preserve legacy `v` from RPC in `Transaction.fromRpc`

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* chore(tests): refresh Bytes, Base58, PublicKey snapshots after error and trim updates

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* fix(transactions): preserve or derive EIP-155 `v` in `TxEnvelopeLegacy.toRpc`

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* fix(transactions): honor `input` alias in `TxEnvelopeEip4844.serialize`

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* fix(transactions): tighten EIP-4844 blob/sidecar validation and deserialize diagnostics

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* fix(transactions): add missing `TxEnvelopeEip7702.toRpc`

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* feat(account-proof): add `fromRpc`/`toRpc` converters

Also unify the RPC-quantity conversion blocks across `Block`, `BlockOverrides`,
and `StateOverrides` behind an internal helper so optional bigint fields with
explicit `'0x0'` round-trip as `0n` instead of being silently dropped by the
previous truthy checks.

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a8-f995-717d-9ca9-b5f6a741d96c

* feat(typed-data,bloom): per-call type-hash memoization and prepared-bloom APIs

- Thread an optional `typeHashes` cache through `TypedData.encode`,
  `TypedData.hashStruct`, and `TypedData.hashDomain` so
  `keccak256(encodeType(t))` is computed once per type per call instead of once
  per nested struct or array element.
- Add `Bloom.prepare`, `Bloom.containsPrepared`, and `Bloom.containsHash`
  so repeated membership checks against the same filter skip the per-call
  `Bytes.fromHex` allocation in `Bloom.contains`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a8-f995-717d-9ca9-b5f6a741d96c

* feat(fee,solidity,personal-message): add converters/helpers and hoist ERC-191 prefix

- Add `Fee.fromHistoryRpc`, `Fee.toHistoryRpc`, `Fee.estimateMaxFeePerGas`, and
  `Fee.effectiveGasPrice` for converting between RPC/instantiated `FeeHistory`
  shapes and computing common EIP-1559 fee values.
- Add `Solidity.intRange(bits, signed)` and `Solidity.maxUint(bits)` helpers
  that compute integer ranges by bit width.
- Hoist the invariant `0x19 \u2016 "Ethereum Signed Message:\\n"` prefix in
  `PersonalMessage.encode` to a precomputed module constant.

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a8-f995-717d-9ca9-b5f6a741d96c

* perf(erc4337): hoist `UserOperation.hash` ABI descriptors and share `packUint128Pair` / `EMPTY_KECCAK`

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-bca0-706c-bbe4-5ac3789142dd

* perf(erc6492): cache `address, bytes, bytes` ABI parameters at module scope

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-bca0-706c-bbe4-5ac3789142dd

* perf(erc7821): cache `Calls` and `Execute` ABI parameters at module scope

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-bca0-706c-bbe4-5ac3789142dd

* refactor(erc8021): share schema-0/1 codes-tail decode in `Attribution.fromData`

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-bca0-706c-bbe4-5ac3789142dd

* test: refresh export snapshots and add EIP-4844 envelope snapshot

Picks up new error class exports from encoding thread fixes
(InvalidPaddingError on Base32/Base64, InvalidValueError +
NonMinimalEncodingError on CompactSize, InvalidLengthError on Base64)
and the new TransactionEnvelopeEip4844 test snapshot file.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1976-9c6f-745e-87d8-d00af1fe5aaf

* test: align fixtures and snapshots with wave-0 correctness fixes

- test/constants/accounts: pass `as: 'Hex'` to `Mnemonic.toPrivateKey`
  to keep the typed `privateKey: Hex.Hex` contract after the default
  return type was corrected to `Bytes`.
- Provider.test.ts: `Provider.from > default` now wraps the response
  with `RpcResponse.parse` to match the strict EIP-1193 contract
  (envelope sniffing was removed).
- RpcTransport.test.ts: mock `fetchOptions` servers now return a full
  JSON-RPC envelope (`id`, `jsonrpc`, `result`) per the strict
  parser contract.
- Registration.test.ts: `error: challenge mismatch` uses an
  even-length hex challenge so the strict hex parser does not fail
  before the mismatch check.
- Block snapshots: `totalDifficulty: undefined` (no longer coerced
  to `0n`) and EIP-155 `v: 37` preserved (no longer normalized to
  27).

Amp-Thread-ID: https://ampcode.com/threads/T-019e1976-9c6f-745e-87d8-d00af1fe5aaf

* chore: drop wave prefix from changeset filenames

Amp-Thread-ID: https://ampcode.com/threads/T-019e1619-ba4f-7081-a18b-287d7a0711e9

* refactor(internal): rename quantity helpers to `toBigInt` / `fromBigInt` / `toNumber` / `fromNumber`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1619-ba4f-7081-a18b-287d7a0711e9

* fix(ci): repair prerelease prepublish order and silence false-positive type errors in tests

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* ci(prerelease): match zile template (`pnpm run build` + `pkg-pr-new publish --pnpm`)

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* fix(tsdoc): mark internal helpers `packUint128Pair` and `decodeCodesTail` with `@internal`

Amp-Thread-ID: https://ampcode.com/threads/T-019e19a3-5fc8-73aa-8b28-4d3406911c63

* feat: v1-1 (#233)

* ci(bench): add Track B bench harness

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-7b95d908f442

* refactor(internal): add tx quantity helpers

Adds shared scalar codec helpers used by every transaction envelope: `quantityToHex`, `hexToBigIntOrUndefined`, `hexToBigIntOrZero`, `hexToNumberOrUndefined`, and `hexToHexOrUndefined`. Replaces the per-envelope `x ? Hex.fromNumber(x) : '0x'` and `Hex.validate(x) && x !== '0x' ? BigInt(x) : ...` patterns with a single set of branch-free helpers and drops the redundant `Hex.validate` checks from RLP-decoded values.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-846ef733b3c0

* perf(transactions): use tx quantity helpers in envelopes

Routes each envelope (`TxEnvelopeEip1559`, `TxEnvelopeEip2930`, `TxEnvelopeEip4844`, `TxEnvelopeEip7702`, `TxEnvelopeLegacy`) through `internal/tx.ts`. On serialize this collapses the `field ? Hex.fromNumber(field) : '0x'` blocks; on deserialize it drops the redundant `Hex.validate` checks (RLP-decoded leaves are already valid hex) and folds the per-field `x !== '0x' ? BigInt(x) : ...` shape into single helper calls.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-846ef733b3c0

* feat(crypto): add `returnByteLength` and `returnDecoded` options to `CoseKey.toPublicKey`

Lets WebAuthn callers consume the COSE key, its byte length and the decoded CBOR map in a single decode pass. The byte length lets verifiers detect trailing bytes after the COSE key without re-encoding.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a0ea94701da4

* perf(internal/webauthn): direct SPKI parse for P-256 in `parseCredentialPublicKey`

Removes two `crypto.subtle.importKey` and `crypto.subtle.exportKey` calls from the WebAuthn registration path. The WebAuthn `getPublicKey()` returns a fixed 91 byte SPKI for ES256, where the trailing 65 bytes are the SEC1 uncompressed point. Validates the SPKI prefix and slices the raw key directly.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a0ea94701da4

* perf(rlp): single-pass encode and hex-leaf fast path

Replaces the parallel `Encodable` tree built by `getEncodable` with two specialized walks: `encodedLength` measures the RLP byte length, `writeEncoded` emits bytes straight into a pre-sized `Uint8Array`. Hex leaves are nibble-decoded directly into the destination buffer via `internal_bytes.charCodeToBase16`, skipping the per-leaf `Bytes.fromHex` allocation. Removes the per-node closure objects and the per-list `reduce` over child lengths. Same public API, same output, no behavior change.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-846ef733b3c0

* refactor(webauthn): shared `parseAuthenticatorData` and `serializeResponseFields` helpers

Adds internal helpers in `webauthn/internal/utils.ts` consumed by `Authentication`, `Authenticator`, `Credential` and `Registration` in follow-up commits.

`parseAuthenticatorData` decodes the fixed 37 byte header (rpIdHash, flags, signCount) into a typed shape so callers no longer re-bit-twiddle the same bytes.

`serializeResponseFields` consolidates the getter fallback path used when browsers/passkey providers expose `authenticatorData` and friends only via getter methods.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a0ea94701da4

* perf(transactions): decode envelopes via Rlp.toBytes

Switches every envelope deserializer (`TxEnvelopeEip1559`, `TxEnvelopeEip2930`, `TxEnvelopeEip4844`, `TxEnvelopeEip7702`, `TxEnvelopeLegacy`) from `Rlp.toHex` to `Rlp.toBytes`. The bytes form returns `Uint8Array` subarray views into the source, so the per-leaf `Hex.fromBytes` allocation that `Rlp.toHex` previously paid for every scalar (chainId, nonce, gas, value, fee fields) is now skipped. New `internal/tx.ts` helpers (`bytesToBigIntOrUndefined`, `bytesToBigIntOrZero`, `bytesToNumberOrUndefined`, `bytesToHexOrUndefined`, `bytesToHex`, `bytesTreeToHex`) consume the byte views directly. Scalars under 7 bytes (the common case for non-fee fields) accumulate via native `Number` arithmetic rather than round-tripping through hex; wider scalars still build a hex string but only once per field. Hex is rebuilt on demand for opaque `to` / `data` fields and the `AccessList` / `Authorization` sub-trees, which still flow through their hex-typed `fromTupleList` codecs.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-846ef733b3c0

* perf(webauthn): bytes-first `getAuthenticatorData` with `as` overload

Builds the authenticator bytes directly into a single `Uint8Array` instead of going via several intermediate hex strings and `Hex.concat`. Added an `as: 'Hex' | 'Bytes'` option so callers that already operate on bytes (verifier, payload builder) can skip the trailing `Hex.fromBytes`.

`getSignCount` now accepts `Hex.Hex | Uint8Array` and routes through the shared `parseAuthenticatorData` helper, removing the unconditional `Bytes.fromHex` on the verify hot path.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a0ea94701da4

* refactor(webauthn): consume shared helpers in `Authentication`

`Authentication.verify` now reads flag bits and `rpIdHash` from `parseAuthenticatorData`. `Authentication.serializeResponse` delegates the response field getter fallback to `serializeResponseFields`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a0ea94701da4

* refactor(webauthn): use shared response-field serializer in `Credential.serialize`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a0ea94701da4

* refactor(webauthn): use shared response-field serializer in `Registration.serializeResponse`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a0ea94701da4

* perf(registration): single COSE decode in `Registration.verify`

Replaces the `bytes -> hex -> Cbor.decode -> CoseKey.toPublicKey -> CoseKey.fromPublicKey` chain in `Registration.verify` with a single `CoseKey.toPublicKey(coseKeyBytes, { returnByteLength: true })` call. The prior approach re-encoded the parsed public key just to compute its byte length, which mis-rejected valid COSE keys with optional members.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a0ea94701da4

* ci(bench): add Track B bench harness

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e63-676e-70ce-a669-c57b3a5eef27

* test(erc4337): add UserOperation.hash and toPacked benches

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-94cc8bc7197c

* perf(address): bounded checksum cache

Replaces the global `Caches.checksum` LRU map with a 32,768-entry FIFO `BoundedMap`. Reads no longer trigger an `delete` + `set` MRU shuffle, and bigger workloads (block builders, indexers) keep more entries hot.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-889e77d45c80

* test(erc6492): add SignatureErc6492 wrap and unwrap benches

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-94cc8bc7197c

* perf(address): manual ASCII validation and isEqual fast path

Replaces the regex / try-catch path in `Address.assert` and `Address.validate` with a single manual ASCII pass that classifies shape and lowercase status together. `Address.checksum` now does a direct `Map.get` lookup before any work and uses lowercase-normalized secondary keys so mixed-case spellings of the same address share an entry. `Address.isEqual` skips per-input regex `assert` calls in favor of a manual shape check plus an identity short-circuit.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-889e77d45c80

* refactor(log): use shared quantity helpers in fromRpc / toRpc

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-8ddf713c828b

* test(erc7821): add Calls encode and decode benches

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-94cc8bc7197c

* test(address): add microbenches for assert, validate, checksum, isEqual

Covers valid + invalid `Address.validate`, lowercase + checksummed strict `Address.assert`, cache-hit and cache-miss `Address.checksum`, and equal / different `Address.isEqual` shapes.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-889e77d45c80

* test(block-state): add fromRpc/toRpc benches for `AccountProof`, `Block`, `Log`

* test(erc8021): add Attribution.fromData benches

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-94cc8bc7197c

* perf(rpc-request): single-pass prepare and prepared-request fast path

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-9be53a108338

* perf(rpc-response): copy-on-write from and code-table parseError

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-9be53a108338

* perf(rpc-transport): direct fetchFn call and lazy timeout allocation

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-9be53a108338

* perf(provider): parseError code-to-constructor table

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-9be53a108338

* perf(bytes): fast-path `fromNumber` and `toBigInt` for fixed-width unsigned values

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-7dbb43759db9

* perf(hex): tighten `Hex.concat` and `Hex.slice` to skip per-arg `replace`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-7dbb43759db9

* perf(signature): rewrite `fromTuple` and `toTuple` to skip bigint round-trip

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-7dbb43759db9

* feat(signature): expose compact/recovered byte helpers

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-7dbb43759db9

* perf(bls): replace `Array.reduce` with tight loop in `aggregate`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-7dbb43759db9

* test(perf): add foundation benches for `Bytes`, `Hex`, `Signature`, `Bls`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-7dbb43759db9

* docs(bench): record `Bytes`, `Hex`, `Signature`, `Bls` foundations baselines

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e63-676e-70ce-a669-c57b3a5eef27

* perf(internal/cursor): forward-only fast path for `_touch`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a7f6c1886bcd

* perf(abi-event): primitive topic codecs and hoisted array-suffix regex

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a7f6c1886bcd

* perf(tempo): add `TempoAddress.unwrap` fast-path helper

Adds an internal helper that strips the `tempox` prefix and validates
the remaining hex without running EIP-55 checksum or allocating a
`{ address }` wrapper. Suitable for hot paths that only need
format-validated bytes (hashing, byte slicing, tuple encoding).

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-9ebb7dd6bce3

* perf(abi-item): use `find` for selector lookups in `fromAbi`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a7f6c1886bcd

* perf(virtual-address): resolve via `TempoAddress.unwrap`

Skips the EIP-55 checksum keccak when an input arrives with a
`tempox` prefix. Also re-documents the existing `toFixedHex` helper
to call out that it already routes bytes inputs through bytes-first
padding, satisfying the bytes-first normalization audit point without
the round-trip cost of forcing every caller through a buffer.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-9ebb7dd6bce3

* perf(internal/abi-item): hoist overload-resolution regexes and swap `for...in` for indexed loop

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a7f6c1886bcd

* perf(hash): bytes fast path

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-902e724b1983

* perf(virtual-master): direct fixed-layout registration digest

`getRegistrationHash` and `validateSalt` now build the
`address || salt` byte buffer directly and feed it to keccak256,
instead of round-tripping through `Hex.concat`. The `toFixedBytes`
helper now branches to bytes for numeric and bytes inputs without
going through hex first, and the master address is resolved with
`TempoAddress.unwrap` to skip the EIP-55 checksum work.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-9ebb7dd6bce3

* perf(internal/abi-parameters): hoist `getArrayComponents` array-suffix regex

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a7f6c1886bcd

* perf(aes-gcm): single-buffer write

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-902e724b1983

* perf(token-id): TIP-20 fast paths for `compute` and `fromAddress`

`TokenId.compute` now builds the 64-byte ABI `(address, bytes32)`
buffer directly and hashes it with keccak256, instead of going through
`AbiParameters.encode` plus `Hex.toBigInt`. `TokenId.fromAddress`
peeks the TIP-20 prefix bytes via `charCodeAt` to avoid a full
`.toLowerCase()` on already-lowercase inputs (the common case), and
both functions resolve the input through `TempoAddress.unwrap`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-9ebb7dd6bce3

* test(abi): add Phase 1 perf benches for `AbiParameters`, `AbiFunction`, `AbiEvent`, `AbiItem`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-a7f6c1886bcd

* test(crypto): add Hash, AesGcm, Bls, WebCryptoP256, Mnemonic benches

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e63-676e-70ce-a669-c57b3a5eef27

* docs(bench): record Tempo Phase 1 perf-foundations results

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e63-676e-70ce-a669-c57b3a5eef27

* docs(bench): record Phase 1 ABI perf numbers

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e63-676e-70ce-a669-c57b3a5eef27

* chore(changeset): describe public-API impact

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e63-676e-70ce-a669-c57b3a5eef27

* chore(changeset): describe public-API impact

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e63-676e-70ce-a669-c57b3a5eef27

* test(webauthn): add Phase 1 perf benches for `Authentication`, `Authenticator`, `Registration`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-8228-756d-b140-0b187eb5187d

* docs(bench): record WebAuthn Phase 1 perf results

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-8228-756d-b140-0b187eb5187d

* perf(rlp): cache list body lengths during measure pass

Replaces the recursive recompute in writeEncoded with a precomputed
lengths cache populated by measure. Avoids the O(N depth) re-walk per
list node so deeply nested inputs encode in a single linear pass.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-bb12-7211-93f1-74662163e7a5

* test(bench): add transaction-shaped Rlp + EIP-1559 envelope benches

Adds bench coverage for the RLP encode/decode hot paths exercised by
every TxEnvelope codec, plus serialize / deserialize / hash benches for
the EIP-1559 envelope. The Rlp bench file is named `Rlp_tx.bench.ts`
to avoid collision with the parallel encoding-thread `Rlp.bench.ts`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-bb12-7211-93f1-74662163e7a5

* ci(bench): record Track B transactions Phase 1 results

Records bench measurements for the transactions area at PR
`a57efdb8` against baseline `origin/v1` (`94d3e4bc`).

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-bb12-7211-93f1-74662163e7a5

* refactor(internal): extract codec core (`utf8`, `hex`, `int`, `bech32-base32`, `errors`)

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-819c13d0330a

* refactor(bytes,hex): break `Bytes` <-> `Hex` runtime cycle via codec core

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-819c13d0330a

* perf(internal/hex): use raw nibble arithmetic in `pad`/`assertSize`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-819c13d0330a

* refactor(base32,bech32m): share `convertBits` and BIP-173 alphabet

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-819c13d0330a

* perf(cursor): defer `positionReadCount` map allocation

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e69-1284-7603-84ed-819c13d0330a

* perf(base64): native `Uint8Array` fast path and tight JS fallback

- Detects `Uint8Array.prototype.toBase64` / `Uint8Array.fromBase64` (Node 22+,
  Safari 18+, Firefox 133+) and routes through the native codec when present.
- Replaces the `Record<number, number>` lookup tables with `Uint8Array(256)`
  tables sentinel-marked at `0xff`; the encode/decode hot loops now do a
  direct integer index instead of a property hash.
- Drops the `encoder.encodeInto` round-trip in the JS decode fallback in
  favour of a tight `charCodeAt` accumulator that writes directly into the
  output buffer.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-ff62-73b8-a262-b462a657ae02

* perf(json): short-circuit `Json.parse` when bigint sentinel is absent

When the input string does not contain the `#__bigint` sentinel, skip the
bigint reviver wrapper entirely and call `JSON.parse(string)` (or pass the
user reviver directly). Engines parse much faster without a reviver
because they do not have to materialize each property to a JS value before
re-walking it, so this short-circuit is a clear win for the common case
of bigint-free payloads (RPC responses, ABI fixtures, etc.).

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-ff62-73b8-a262-b462a657ae02

* chore(format): apply biome `--unsafe` import sort and line-wrap fixes

Mechanical reformat carried out by `biome check . --fix --unsafe` after
the Phase 1 codec extraction. No behaviour changes.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-ff62-73b8-a262-b462a657ae02

* test(bench): add encoding-track bench suites

Adds first-pass `vitest bench` suites for `Bytes`, `Hex`, `Rlp`, `Cbor`,
`Base64`, and `Json` so the Phase 1 / Phase 2 perf wins on this track can
be measured against `origin/v1` and recorded under `bench/encoding.md` and
`bench/foundations.md`.

Each suite seeds fixtures of mixed sizes (small / medium / large) outside
of the bench callbacks and exercises the public hot-path entrypoints
identified by the encoding audit:

- `Bytes`: `fromHex` / `toHex` / `concat` / `fromString` / `toString` /
  `fromNumber` / `padLeft`.
- `Hex`: `fromBytes` / `toBytes` / `concat` / `fromNumber` (incl.
  safe-int fast path) / `toBigInt` / `padLeft` / `fromString` /
  `validate({ strict: true })`.
- `Rlp`: encode / decode for single strings and flat / nested lists,
  both `Hex` and `Bytes` codecs.
- `Cbor`: `encode` / `decode` for small / medium objects and a
  256-byte buffer, both `Hex` and `Bytes` outputs.
- `Base64`: `fromBytes` / `toBytes` for 32 / 256 / 4096 byte payloads
  and `pad: false` / `url: true` variants, plus
  `fromString` / `toString` round trips.
- `Json`: `parse` (with and without the `#__bigint` sentinel),
  `stringify`, and `canonicalize`.

No production code is touched.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-ff62-73b8-a262-b462a657ae02

* docs(bench): record encoding-track Phase 1 / 2 results

Captures `pnpm bench --run` numbers for `Bytes`, `Hex`, `Base64`, and
`Json` against `origin/v1` (`94d3e4bc`) and the track-b/encoding tip
(`c3d2eff6`), `core` project only, on macOS arm64 / Node 24.

Highlights:

- `Hex.toBytes` / `Bytes.fromHex` 4096 bytes: +2400% via the native
  `Uint8Array.fromHex` fast path.
- `Hex.fromBytes` / `Bytes.toHex` 4096 bytes: +1900% via
  `Uint8Array.prototype.toHex`.
- `Json.parse` medium 32-tx payload (no `#__bigint`): +556% via the
  reviver short-circuit.
- `Base64.toBytes` URL-safe 32 bytes: +222% via the native
  `Uint8Array.fromBase64` fast path; padded 32 bytes: +118%.

`Rlp` baseline measurement is still pending due to concurrent port
contention on `:8545` between Track B worktrees.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1e9e-ff62-73b8-a262-b462a657ae02

* chore(changeset): describe public-API impact

Amp-Thread-ID: https://ampcode.com/threads/T-019e1ebc-12b1-7182-8425-043467b61064

* chore(changeset): describe transactions Phase 1 perf work

Amp-Thread-ID: https://ampcode.com/threads/T-019e1ebc-12b1-7182-8425-043467b61064

* chore(changeset): describe public-API impact

Amp-Thread-ID: https://ampcode.com/threads/T-019e1ebc-12b1-7182-8425-043467b61064

* perf(rlp): hex-output fast path for transaction-shaped encode

When every leaf in the input tree is already hex and the caller asked for
hex output, emit the RLP encoding directly as a hex string instead of
allocating an intermediate `Uint8Array` and round-tripping through
`Hex.fromBytes`. This is the dominant shape for transaction envelope
serialize.

Recovers the `TxEnvelopeEip1559.serialize` regression flagged in
`bench/regressions.md` (-41% -> +241% vs `origin/v1` on minimal envelope;
-11% -> +344% with access list).

* perf(hex): no-end fast path for `Hex.slice`

When `Hex.slice` is called without an `end` and with a non-negative
`start`, skip the `replace('0x', '')` + bounded `slice` chain and either
return the input unchanged (start 0) or do a single offset `slice` from
the post-`0x` data. The general path (negative offsets, explicit `end`)
still strips `0x` once and uses `String.prototype.slice`'s native
negative-offset semantics.

Recovers the `Hex.slice` no-end-positive-start regression
(-10%) flagged in `bench/regressions.md`.

* fix(cursor): preserve recursive-read accounting in forward-only fast path

`13466b52 perf(internal/cursor): forward-only fast path for _touch` set
`maxLinearPosition` to the start position of the read (not past it), so a
re-read of the same byte after `setPosition` was indistinguishable from
the first read and never charged to the recursive-read budget. The
`args: recursiveReadLimit > === 2` test in `cursor.test.ts` regressed.

Reframe the fast path: track `position + 1` as the frontier of observed
bytes. Reads that start at or past the frontier are forward and skip
bookkeeping; reads that start strictly before the frontier overlap
already-touched bytes and increment `recursiveReadCount`. This preserves
the per-read cost of the optimization (no `Map.get`/`Map.set`) while
making the recursive-read limit fire on cyclic inputs again.

* chore(gitignore): untrack `tasks/` and remove the `tasks/bench/` exception

`tasks/bench/README.md` was the only tracked file under `tasks/` and was
local working notes for the bench harness, not source the repo needs to
distribute. Drop it from the index and tighten `.gitignore` so the entire
`tasks/` directory stays local to each contributor.

* refactor(address/internal): match public-module convention

Drop the `Address` prefix from the internal helpers and switch the
caller to a wildcard import. Aligns `internal/address.ts` with the rest
of the `internal/*` modules (`internal/hex.ts`, `internal/bytes.ts`,
etc.), which export bare verbs (`assertSize`, `pad`) and are imported as
`internal`.

- `classifyAddress` -> `classify`
- `hasAddressShape` -> `hasShape`
- `lowercaseAddress` -> `lowercase`
- `addressLength` -> `length`

Address.ts now imports as `import * as internal from './internal/address.js'`
and call sites read `internal.classify(...)`, `internal.hasShape(...)`,
`internal.lowercase(...)`.

* chore(changeset): drop perf-only and refactor-only entries

Changesets should record observable changes to the public API (new APIs,
behavior changes, validation tightening, error/type-shape changes, doc
corrections that affect what callers can rely on). Pure perf wins and
internal refactors don't change what `ox` does, so they don't belong in
the user-facing changelog -- they're recorded in `bench/` and the commit
log instead.

Removes 43 entries covering:

- Perf fast paths and hot-loop rewrites across `Abi*`, `Address`,
  `AesGcm`, `Base64`, `Bls`, `Bytes`, `Cursor`, `erc4337`, `erc6492`,
  `erc7821`, `Hash`, `Hex`, `Json`, `PersonalMessage`, `Provider`,
  `Registration`, `Rlp`, `RpcRequest`, `RpcResponse`, `RpcTransport`,
  `Signature`, `tempo.*`, `TxEnvelope*`, `webauthn.*`.
- Internal refactors that share helpers without changing call signatures
  (`Base32`/`Bech32m`, `erc8021.Attribution`, `webauthn.*` shared
  serializers, `TransactionRequest.toRpc` dead-code removal).
- The `bench-harness.md` entry, which documented the dev-only
  `pnpm bench` tooling rather than a public API addition.

Remaining 72 entries cover only behavior changes, new APIs, validation
tightening, error/type changes, and JSDoc corrections that fix
previously-misleading defaults.

* fix(cursor): correct `_touch` accounting for non-monotonic reads

The forward-only fast path tracked `maxLinearPosition` as a frontier and charged any read at `position < maxLinearPosition` as recursive. ABI decoding routinely jumps forward via `setPosition` and then restores back to a lower position to continue the static head; those continuing reads land in fresh bytes but were charged as re-reads, blowing the 8192 limit on legitimately-shaped payloads.

Reverted `_touch` to per-start-position counting via the lazy `positionReadCount` map, keeping the deferred allocation so cursors that never trip the limit still skip the `new Map()`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1f30-63dc-73e1-ba10-011fe1977400

* fix(ci): restore `zile publish:prepare` step in prerelease workflow

`pnpm run build` calls zile's build but preserves pre-marker keys (including `private: true`) when writing `package.json` back, so `pkg-pr-new publish` skipped the package and failed with `No packages`. `zile publish:prepare` runs the build and then strips pre-marker keys via `Package.stripPreMarkerKeys`, leaving a publishable `package.json` for `pkg-pr-new`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1f30-63dc-73e1-ba10-011fe1977400

* fix(rlp): mark internal helpers with `@internal` to satisfy `jsdoc/require-example`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1f43-d5d5-708c-b5b7-37d5511f4ef8

* test: add fuzz testing foundation with `fast-check`

Set up property-based / fuzz testing for `ox` using `fast-check` and
`@fast-check/vitest`. Added a gated `fuzz` Vitest project (run via
`pnpm test:fuzz` / `pnpm test:fuzz:ci`) so stochastic property tests
stay out of the default `pnpm test` loop, plus a dedicated `Fuzz` job
in `verify.yml` bounded to 200 runs/property on PRs.

Landed seven harnesses covering 22 properties: round-trip checks for
`AbiParameters`, `Rlp`, `Hex`, `Base32`/`58`/`64`, `Cbor`, and
`Signature`, plus an adversarial-offset harness for `AbiParameters`
that mutates 32-byte slots and asserts decode either succeeds or
throws only a whitelisted error name. The adversarial harness directly
targets the `Cursor.RecursiveReadLimitExceededError` regression class.

Shared, ox-specific arbitraries live under `test/fuzz/arbitraries/`
(ABI schema/value generators, RLP recursive trees biased toward
length-prefix transition boundaries, hex/bytes/bigint helpers).

* feat(v1): `Parts` codecs and serialized-input `as` option for crypto modules (#240)

* feat(signature): introduce `Parts` types and codecs

Added structured `Parts` companion types for ECDSA and BLS keys/signatures
plus matching `toParts` / `fromParts` codecs.

Today `Signature.SignatureParts<recovered>`, `PublicKey.PublicKeyParts<compressed>`,
`BlsPoint.G1Parts`, and `BlsPoint.G2Parts` are structurally equivalent to their
root types. The codecs are structural pass-throughs. The Phase 5 type flip will
turn `Signature` / `PublicKey` / `BlsPoint` into hex strings while keeping
`Parts` as the object form, so migrating call sites now keeps the upgrade a
no-op.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1f65-8e23-72d8-bafb-cd699ac092d3

* feat(crypto): accept serialized inputs and add `as` option to crypto modules

Updated `Secp256k1`, `P256`, `WebCryptoP256`, and `Bls` to accept
`Hex.Hex | Bytes.Bytes` alongside the existing structured `Signature` /
`PublicKey` / `BlsPoint` inputs on `verify`, `recoverAddress`,
`recoverPublicKey`, and `getSharedSecret`.

Added `as: 'Hex' | 'Bytes' | 'Object'` option to `sign`, `getPublicKey`,
and `recoverPublicKey` (where applicable). Default stays `'Object'` so
existing call sites are unchanged. `Bls.aggregate` accepts hex/bytes inputs
when an `options.group` hint is supplied; `Bls.sign` / `getPublicKey` gain
matching `as` overloads with proper return-type narrowing.

A small `internal/cryptoIo.ts` module hosts the shared `normalize` /
`format` helpers so each module stays a thin wrapper.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1f65-8e23-72d8-bafb-cd699ac092d3

* refactor(signature,public-key): rename `SignatureParts` / `PublicKeyParts` to `Parts`

Amp-Thread-ID: https://ampcode.com/threads/T-019e1f7c-5fe7-724f-8c06-167b176f4cc1

* docs(signature,public-key,bls-point): convert future-major `@remarks` blocks to `TODO(v1)` comments

Amp-Thread-ID: https://ampcode.com/threads/T-019e1f7c-5fe7-724f-8c06-167b176f4cc1

* feat(v1)!: migrate ECDSA/BLS coordinates to padded `Hex.Hex` (#247)

Amp-Thread-ID: https://ampcode.com/threads/T-019e209b-2134-76ae-9d53-e2176483b983

* test: align fixtures with hex coordinate migration and mocked test helpers

Amp-Thread-ID: https://ampcode.com/threads/T-019e2382-a9e8-77fc-b130-986e464b6085

* fix(docgen): point api-extractor at `dist/` and restore `scripts/utils/exports` helper

After the zile migration, `pnpm docs:gen` was broken: api-extractor still pointed at the legacy `src/_types/` path that tsc no longer emits, and `scripts/utils/exports.ts` (consumed by docgen `build.ts`) was deleted. Repoint api-extractor at `dist/index.docs.d.ts`, recreate the minimal `getExports` helper used by docgen, run api-extractor with `--local` so tsdoc warnings don't fail the build, and qualify `Bloom` jsdoc `@link`s with `ox#`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e2382-a9e8-77fc-b130-986e464b6085

* fix(docgen): clean stale generated pages and resolve Vercel build failures

Wipe `site/pages/{api,ercs,tempo,webauthn}` at the start of `scripts/docgen/build.ts` so orphaned files from prior runs don't get picked up by Vocs/Twoslash. The Hex coordinate migration left stale `bigint` examples in pages that no longer regenerate (e.g. `api/Transaction`, `api/RpcSchema`) because tempo's namespaces shadow core's in the docgen lookup.

Patch `[email protected]` to use `moduleResolution: bundler` so `ox/window` resolves in Twoslash, repoint `api-extractor` at `dist/`, and update guides/JSDoc examples to use the padded Hex string shape introduced in #247.

Amp-Thread-ID: https://ampcode.com/threads/T-019e2417-f962-73b6-ae52-1e0a83106e57

* chore(site): migrate to vocs v2

Migrated the docs site to Vocs v2 using the `next` branch from `wevm/vocs` (`pkg.pr.new@dc18ab3`). Pages move from `site/pages/` to `site/src/pages/`, configuration moves from `vocs.config.tsx` to `vocs.config.ts` using `defineConfig` from `vocs/config`, and rendering switches to the Waku-powered `vocs dev`/`vocs build`/`vocs preview` CLI.

Updated `scripts/docgen/build.ts` to write generated pages and `config-generated.ts` under `site/src/`. Bumped React to `19.2.5` to satisfy the new RSC pipeline, dropped the v1 `[email protected]` patch, and pinned `[email protected]` plus `[email protected]` for trust.

Configuration changes: `theme.accentColor` becomes the top-level `accentColor`, `markdown.code.themes` becomes `codeHighlight.themes`, and `ogImageUrl` becomes a callback. The Fathom analytics `head()` script is removed -- v2 has no head escape hatch and `transformIndexHtml` does not fire for SSR routes; will reattach via a follow-up.

Also rolls in the `refactor!: remove fromParts / toParts codecs` change that was previously committed as `0b270771`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e2543-e426-718c-ad9d-bc002b6409cf

* chore(deps): patch security advisories via pnpm overrides

Adds overrides for all packages flagged by `pnpm audit` to their
patched versions. Resolves 74 advisories (2 critical, 37 high, 30
moderate, 5 low) reported across transitive deps.

Amp-Thread-ID: https://ampcode.com/threads/T-019e3427-a839-70cd-a507-4997e7e34073

* feat(tempo)!: remove TempoAddress module

Drops the `tempox`-prefixed address format. All Tempo modules now
accept plain hex `Address.Address` values; callers should remove
any `TempoAddress.format` / `parse` / `resolve` boundary calls.

Amp-Thread-ID: https://ampcode.com/threads/T-019e3427-a839-70cd-a507-4997e7e34073

* refactor(tempo)!: drop `addressType` generic from Tempo types

With TempoAddress gone, all address values are plain `Address.Address`.
Removes the now-redundant `addressType` type parameter from `Call`,
`TxEnvelopeTempo`, `KeyAuthorization` (and `Signed`/`Scope`/`TokenLimit`),
`AuthorizationTempo`, `TransactionRequest`, and `TokenId.TokenIdOrAddress`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e3427-a839-70cd-a507-4997e7e34073

* feat(core)!: migrate EIP-4844 sidecars to PeerDAS (EIP-7594)

- Add `BlobCells` module with cell-level helpers (`fromBlob`, `verify`,
  `recover`, `toDataColumns`) for PeerDAS data-column construction.
- Reshape `TxEnvelopeEip4844.sidecars` to `{ blobs, commitments, cellProofs }`.
  The on-wire `PooledTransactions` wrapper now uses the 5-element PeerDAS
  form `rlp([tx_body, 0x01, blobs, commitments, cell_proofs])`; the legacy
  4-element wrapper is rejected by `deserialize`.
- Replace `Blobs.toSidecars` / `toProofs` / `sidecarsToVersionedHashes` with
  `Blobs.toCommitments` / `commitmentsToVersionedHashes` / `toCellProofs`.
- `Kzg.Kzg` now requires a PeerDAS-capable backend (`computeCells`,
  `computeCellsAndKzgProofs`, `recoverCellsAndKzgProofs`,
  `verifyCellKzgProofBatch`); `computeBlobKzgProof` is dropped.
- Move the Sepolia blob e2e flow into `TransactionEnvelopeEip4844.test.ts`
  as a `describe.skip` block driven by `RpcTransport` and
  `eth_sendRawTransactionSync`.

* chore: remove bench/ result reports

* fix(ci): unbreak tsdoc + bump testTimeout for peerdas KZG tests

- `pnpm-workspace.yaml`: scope the ajv@<6.14.0 override to `^6.14.0`.
  The previous `>=6.14.0` upper-bound was unbounded, so pnpm resolved it
  to [email protected], which is incompatible with `@eslint/[email protected]` (uses
  the ajv@6 API). `pnpm check:tsdoc` was crashing with
  `TypeError: Cannot set properties of undefined (setting 'defaultMeta')`.
- `Kzg.test.ts` / `Blobs.test.ts`: add 60s per-test timeouts on the
  PeerDAS `computeCellsAndKzgProofs` / `toCellProofs` tests. They run
  in 3-13s locally but spill past the 20s testTimeout on busy CI
  runners.

* test: bump timeout for KZG-heavy BlobCells tests

Same fix as the previous commit, applied to `BlobCells.test.ts` which
`Verify / Test Runtime (core)` flagged in the next CI run. The
`fromBlob` / `verify` / `recover` / `toDataColumns` tests all invoke
the KZG backend and routinely run 5-9s locally; bumping per-test
timeout to 60s gives plenty of headroom on busy CI runners.

* fix(docs): render API overview tables

* fix(vercel): use HTTPS forge-std submodule

* fix(vercel): skip postinstall setup

* Revert "fix(vercel): skip postinstall setup"

This reverts commit 32d4aa08e2e3ad9643e79db0c622381ad3e0778c.

* chore: rerun checks

* fix(vercel): disable pnpm run auto-install

* docs: add agent guidelines

* feat: checksum abi decoded addresses

* feat: infer abi function from calldata

* fix: allow constructorless abi deploy data

* feat: add `AbiEvent.decodeLog`

* feat: add `AbiEvent.decodeLogs`

* feat: add `AbiEvent.extractLogs`

* feat: add `AbiError.extract`

* fix: preserve abi error extract inference

* feat: add ens coin type conversion

* feat: use bigint siwe chain ids

* feat: support log block timestamps

* feat: add transaction envelope router

* fix: infer transaction envelope routing

* test: add transaction envelope parity cases

* fix: default transaction envelope routing

* feat(filter): add EIP-234 blockHash branch to Filter type

Filter.Filter (and Filter.Rpc) now express the execution-apis filter.yaml
oneOf schema: callers may supply either fromBlock/toBlock or blockHash.
Filter.toRpc forwards blockHash when present.

Amp-Thread-ID: https://ampcode.com/threads/T-019e4422-9e7a-70de-bb9e-51613fe54d38

* test: update for checksummed decoded addresses and public zone rpc

Amp-Thread-ID: https://ampcode.com/threads/T-019e44f7-3dbb-7075-ae39-2cc9f8fd138b

* test: fix Execute decoded address casing and switch zone rpc to public alias

Amp-Thread-ID: https://ampcode.com/threads/T-019e4751-6080-7199-bd74-0d2abd53fb0e

* feat(transaction): add TransactionRequest <-> TxEnvelope conversion helpers

Amp-Thread-ID: https://ampcode.com/threads/T-019e479d-ca06-712c-b98c-ad11193b366f

* chore: migrate to vite-plus

Amp-Thread-ID: https://ampcode.com/threads/T-019e4847-7445-776a-aa8f-ba28223e853b

* chore: ignore markdown in formatter

Amp-Thread-ID: https://ampcode.com/threads/T-019e4847-7445-776a-aa8f-ba28223e853b

* chore: move all devDependencies to pnpm catalog

Amp-Thread-ID: https://ampcode.com/threads/T-019e4847-7445-776a-aa8f-ba28223e853b

* docs: skip intentional-error example blocks via `@noErrors`

Adds `// @noErrors` to JSDoc example snippets that intentionally trigger
type or runtime errors so they're recognized by zile's examples:check.

Also fixes two `Siwe.createMessage` examples in src/index.ts that used
`chainId: 1` instead of the required `chainId: 1n`.

Amp-Thread-ID: https://ampcode.com/threads/T-019e488f-68ce-7377-8ce7-b3848e22594b

* chore: add `check:examples` script and CI step

Bumps zile to ^0.0.26 to pick up the `examples:check` command for
typechecking JSDoc snippets, adds a `pnpm check:examples --fix` script,
and runs it (without `--fix`) in the Verify CI job.

Amp-Thread-ID: https://ampcode.com/threads/T-019e488f-68ce-7377-8ce7-b3848e22594b

* test(transaction-receipt): update snapshot for bigint blockTimestamp

`Log.fromRpc` now converts `blockTimestamp` to bigint; the
`TransactionReceipt` test snapshot was still expecting the raw hex
string.

Amp-Thread-ID: https://ampcode.com/threads/T-019e488f-68ce-7377-8ce7-b3848e22594b

* fix(rpc-transport): handle empty body on `application/json` responses

Some RPC servers return `Content-Type: application/json` with an empty
body for error responses (e.g. `401 Unauthorized`). Previously
`response.json()` would throw a confusing `SyntaxError: Unexpected end
of JSON input` instead of surfacing the underlying HTTP error.

Now always read the response as text and parse JSON manually, so empty
bodies fall through to the existing `HttpError` path.

Amp-Thread-ID: https://ampcode.com/threads/T-019e488f-68ce-7377-8ce7-b3848e22594b

* fix(abi-function): default missing args to empty array in encodeData

Amp-Thread-ID: https://ampcode.com/threads/T-019e48ea-da03-75ce-bdc2-43471885e384

* test: fix checksum casing in decode/unwrap roundtrip tests

Amp-Thread-ID: https://ampcode.com/threads/T-019e48ea-da03-75ce-bdc2-43471885e384

* test(zone-rpc-auth): skip flaky external testnet e2e

Amp-Thread-ID: https://ampcode.com/threads/T-019e48ea-da03-75ce-bdc2-43471885e384

* chore: update pnpm-lock.yaml for site/package.json removals

Amp-Thread-ID: https://ampcode.com/threads/T-019e48ea-da03-75ce-bdc2-43471885e384

* fix(tsconfig): add DOM.Iterable and type CDP session for playwright

Amp-Thread-ID: https://ampcode.com/threads/T-019e48ea-da03-75ce-bdc2-43471885e384

* ci: remove obsolete check:tsdoc step

Amp-Thread-ID: https://ampcode.com/threads/T-019e4c4f-185a-752c-a196-613b17fd169c

* docs: design

* docs: design

* fmt: examples

* fix(docs): restore docs build

* fix(docs): stabilize example checks

* fix(docs): restore grouped imports

* feat: zod

Amp-Thread-ID: https://ampcode.com/threads/T-019e86eb-d7da-728b-a54e-4dd72ebe3171

* fix(tempo): pair TIP-1049 admin fields in KeyAuthorization.fromRpc and format JSDoc examples

The fromRpc return spread account/isAdmin independently, producing a type
with independently-optional fields that does not satisfy the OneOf admin
pairing. tsc -b missed this but tsgo (zile build) and examples:check caught
it. Build the result as a base KeyAuthorization with a paired adminPair and
cast, mirroring fromTuple. Also formats tempo JSDoc example snippets and adds
the missing zod/tempo/MultisigConfig export.

Amp-Thread-ID: https://ampcode.com/threads/T-019e86eb-d7da-728b-a54e-4dd72ebe3171

* chore: enable beta prerelease changesets

* chore: publish beta prereleases

* chore: publish beta from changesets workflow

* chore: fix beta version command

* chore: version beta packages

* fix(site): use v1 docs base url

* chore: skip hooks for beta version commits

* fix(site): use beta docs origin

* fix(tempo): update multisig zod schema

* chore(tempo): format multisig examples

* fix(site): use vocs link for docs cta

* chore(site): update docs runtime deps

* fix(site): improve landing docs affordances

* fix(site): strengthen docs cta weight

* fix(site): adjust abi snippet spacing

* feat(site): add zod homepage example

* fix(site): remove lighter content link weight

* fix(site): remove zod homepage example

* fix(site): tune landing cta weight

* feat(docs): add SEO descriptions to generated and static pages

Derive 5-15 word meta descriptions from TSDoc summaries with an optional
@description override, wire them into docgen output and static pages, and
refactor OG image generation to import assets directly.

Amp-Thread-ID: https://ampcode.com/threads/T-019e9be9-2b68-7531-bde7-a79cd9cc2776

* feat(site): enlarge install command and brand badge in home OG image

Recreate the static homepage OG image in code and bump the npm install
command and "by Wevm" badge sizing.

Amp-Thread-ID: https://ampcode.com/threads/T-019e9be9-2b68-7531-bde7-a79cd9cc2776

* feat(docs): replace module root links with per-module Overview sidebar item

Drop the group-level link on each API module and add an Overview entry as
the first child linking to the module root, sourcing the reference index
table link from a dedicated field.

Amp-Thread-ID: https://ampcode.com/threads/T-019e9be9-2b68-7531-bde7-a79cd9cc2776

* fix(site): drop brand badge and widen install pane in home OG image

Amp-Thread-ID: https://ampcode.com/threads/T-019e9be9-2b68-7531-bde7-a79cd9cc2776

* chore: update vocs to 2.0.14

Amp-Thread-ID: https://ampcode.com/threads/T-019ed2f3-0e4c-72d8-93da-6434c3470b48

* fix(docgen): keep core namespace doc comments for names exported from multiple entrypoints

Transaction, TransactionReceipt, and TransactionRequest are exported from both
the core and tempo entrypoints. namespaceDocComments was keyed by bare name with
last-writer-wins, so tempo's metadata overwrote core's and the rendered (core)
pages were written to /tempo/reference instead of /api. Merge first-writer-wins
so the canonical core export's doc comment takes precedence.

Amp-Thread-ID: https://ampcode.com/threads/T-019ecdb2-74ba-7404-ad56-cfc8a952dacc

* fix(docgen): render docs for namespaces that collide across entrypoints

Names exported from multiple entrypoints (e.g. Transaction in core + tempo,
RpcSchema in core + erc4337) were dropped from the merged model, leaving
only the core pages. Recover each colliding namespace from a dedicated
single-entrypoint model so both the core and secondary-entrypoint pages
render under their own paths.

Amp-Thread-ID: https://ampcode.com/threads/T-019ecdb2-74ba-7404-ad56-cfc8a952dacc

* test(tempo): assert dynamic `gasPrice`/`effectiveGasPrice` in e2e snapshots

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* feat(RpcSchema): support Zod-backed RPC schemas

Add z.RpcSchema.from namespace overload that normalizes a record of { params, returns } Zod schemas (keyed by method name) into a parseable RpcSchema.Namespace. Add RpcSchema.Schema/ToGeneric/FromZod, and make Provider.from and RpcTransport.fromHttp accept a Zod namespace as their schema option.

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: version beta packages

* feat(RpcSchema): add directional decode/encode helpers and native scalar return codecs

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* docs(RpcSchema): format zod RpcSchema JSDoc examples

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: add changeset for RpcSchema codec helpers

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: version beta packages

* fix(RpcSchema): wire-type EIP-1898 block identifier in core request schemas

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: version beta packages

* feat(RpcSchema): accept a resolved Item in zod codec helpers

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: version beta packages

* feat: accept numberish inputs in toRpc functions

Amp-Thread-ID: https://ampcode.com/threads/T-019ee133-40e1-7399-99f8-2d095ad8f782

* chore: version beta packages

* feat(RpcSchema): encode request params with TransactionRequestToRpc

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: version beta packages

* feat(RpcSchema): add blockOverrides param to eth_call and eth_estimateGas

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: version beta packages

* fix(zod): accept logs with zero topics

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: version beta packages

* feat(abi): move human-readable ABI utils into ox (#274)

* feat(abi): move human-readable utils into ox

* chore: bump vocs

* chore: up

* chore: up

* chore: format

* chore: version beta packages

* feat(rpc-schema): add eth_fillTransaction to RpcSchema.Eth

Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5

* chore: version beta packages

* fix(rlp): limit decode depth (#278)

Add a 1024 nesting-depth limit to Rlp.toBytes/toHex decoding, throwing
Rlp.DepthLimitExceededError instead of overflowing the call stack on
deeply nested untrusted RLP input.

Amp-Thread-ID: https://ampcode.com/threads/T-019f11c2-9b15-775b-964d-340d62f0a299

* chore: version beta packages

* refactor(tempo)!: remove multisig `config_id` concept (#280)

* refactor(tempo)!: remove multisig config_id concept

Derive multisig account addresses directly from the initial config.
Drop config_id from the owner approval digest and the 0x05 wire format.
Raise maxOwners to 255 with u8 weights. Validate nested multisig owner
approvals (depth limit, no init, no keychain).

* Update multisig-remove-config-id.md

* test(tempo): add multisig access-key e2e coverage

Authorize an access key via a multisig-signed AccountKeychain
authorizeKey call, execute a keychain-signed transaction with it,
and reject keyAuthorization on multisig transactions.

* chore: version beta packages

* feat: add `eth_getRawTransactionByHash` to `RpcSchema.Eth` (#287)

* chore: version beta packages

* feat(tempo): add gas-modeling wire fields to TransactionRequest

Adds keyId, multisigInit, multisigSignatureCount, and capabilities to the
tempo TransactionRequest; carries keyType/keyData/feePayer through toRpc
(shimming long key data into a 2-byte length hint); withholds feeToken
until the fee payer has signed (TIP-76); defaults data-less lifted calls
to the zero address; and marks toEnvelope output as pending a fee payer
signature when feePayer is set. Mirrored in the zod codecs.

Amp-Thread-ID: https://ampcode.com/threads/T-019f3562-6191-707e-8402-ee011f40a8a0

* chore: version beta packages

* refactor(tempo)!: remove token IDs in favor of addresses (#288)

* refactor(tempo)!: narrow token inputs to addresses

* refactor(tempo)!: remove TokenId module

* chore: version beta packages

* chore: update vocs and waku

* feat(site): add ai search

* fix(site): dead `RpcSchema.FromZod` doc link, optional ai search credentials

* chore: version beta packages

* chore(site): bump vocs, move ai search vectors to cloudflare vectorize (#289)

* fix(tempo): null-tolerant transaction RPC decoding

* chore: version beta packages

* fix(site): stale `z.RpcSchema.parse*` names in zod guide

* chore(tempo): format tsdoc examples

* test(tempo): update e2e transaction snapshots

* fix(tempo): null-tolerant key authorization RPC decoding

Amp-Thread-ID: https://ampcode.com/threads/T-019f3562-6191-707e-8402-ee011f40a8a0

* chore: version beta packages

* fix: reject trailing bytes and list boundary overruns in RLP decoding

Amp-Thread-ID: https://ampcode.com/threads/T-019f3562-6191-707e-8402-ee011f40a8a0

* fix: decode standalone zero-length fixed arrays of dynamic types

Amp-Thread-ID: https://ampcode.com/threads/T-019f3562-6191-707e-8402-ee011f40a8a0

* chore: version beta packages

* feat: abi (#292)

* feat(zod): add ABI schemas

* chore: changeset

* chore: version beta packages

* fix: map tempo transaction receipt type between wire and native forms

* chore: version beta packages

* feat(erc4337): add EntryPoint 0.9 and fix bundler RPC types

* docs: record attest type snapshot setup

* chore: version beta packages

* chore(site): use published vocs release instead of pkg.pr.new snapshot (#293)

Docs deploys were failing at install time with `TypeError: fetch failed`
(`AggregateError [ETIMEDOUT]` connecting to a Cloudflare edge IP) while
pnpm downloaded vocs from https://pkg.pr.new/vocs@35ebd0c. pkg.pr.new
snapshots are ephemeral and less reliable to fetch than the npm registry.

The pinned snapshot's content matches the published [email protected] (identical
dependency graph; theme.css differs only in formatting), so pin that
instead and resolve it from the registry.


Claude-Session: https://claude.ai/code/session_01Hs7BNHbyd3S6cu7F2ZdPDT

Co-authored-by: Claude <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <[email protected]>
Co-authored-by: tmm <[email protected]>
Co-authored-by: tmm <[email protected]>

This branch had an error being deployed

1 failed deployment
Preview — 16139f96 Deployed May 13, 2026 by vercel[bot]
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.

1 participant