Skip to content

Releases

ox@1.9.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 19:25
256f1a6

Minor Changes

  • #727 13ae075 Thanks @jxom! - Improved AbiEvent.extractLogs type-checking performance: with several event names the event type is selected by name without computing the overload arguments of every event, and without an event name it is the ABI's events, which also types an overloaded event's arguments as the union of its overloads instead of unknown (5 to 10× fewer instantiations per call).

  • #727 13ae075 Thanks @jxom! - Fixed Rlp.from, Rlp.fromHex and Rlp.fromBytes accepting malformed hex leaves: a leaf with a non-hex digit, without a lowercase 0x prefix (including 0X…, which Hex.validate and Bytes.fromHex already rejected), or empty now throws Hex.InvalidHexValueError for every output, as Rlp.encodeTo does, instead of producing invalid hex, encoding a bad single-byte leaf as 0x00, or encoding a prefix-less leaf as empty.

  • #720 e4fc3ef Thanks @jxom! - Made AbiParameters and Cbor tree-shakeable by replacing their runtime namespaces with plain functions, so importing one of their errors or utilities no longer bundles packed encoding or the whole CBOR codec (AbiParameters.encodePacked.encode, an undocumented helper, is no longer exported).

  • #727 13ae075 Thanks @jxom! - Improved type-checking of TypedData.encodeType, hashStruct, hashType, encodeData, encodeField and findTypeDependencies by about 700x (11,700 to 17 instantiations for a call): their types parameter is a plain record of { name, type } lists instead of abitype's TypedData.

Patch Changes

  • #727 13ae075 Thanks @jxom! - Improved AbiParameters.decode performance on data of up to 64 bytes: it copies words instead of viewing them, which V8 would first move to an ArrayBuffer of their own (one uint256 547 → 328 ns, one address 629 → 456 ns).

  • #727 13ae075 Thanks @jxom! - Made AbiParameters.encode and AbiFunction.encodeData build their output as a string of hex digits instead of writing a byte buffer and hex-encoding it, skipped the integer-type regex and bound arithmetic for uint256 and int256, lowercased addresses with the native toLowerCase, and had AbiFunction.encodeData, AbiItem.getSelector, AbiItem.getSignature and AbiItem.getSignatureHash take their arguments without a rest array and closure, so AbiParameters.encode runs about 4x faster, AbiFunction.encodeData about 4x faster with 4x less memory, and AbiItem.getSelector about 7x faster with 12x less memory, with the output and errors unchanged.

  • #720 e4fc3ef Thanks @jxom! - Reduced the type instantiations of ABI encoding calls with inline values, such as AbiParameters.encodePacked (about 120×), AbiFunction.encodeResult (about 50×), and AbiParameters.encode, AbiFunction.encodeData, AbiError.encode, AbiConstructor.encode and AbiEvent.encode (about 5×).

  • #720 e4fc3ef Thanks @jxom! - Declared AbiError.solidityError and AbiError.solidityPanic as literals, so decoding or encoding an error no longer bundles the human-readable ABI parser.

  • #727 13ae075 Thanks @jxom! - Reduced the type instantiations of AbiItem.fromAbi, AbiFunction.fromAbi, AbiEvent.fromAbi and AbiError.fromAbi (about 2.2×): fromAbi.Options declares prepare in each of its branches instead of intersecting it with them.

  • #727 13ae075 Thanks @jxom! - Reduced the type instantiations of AbiFunction.encodeData calls: a function without inputs is recognized without resolving its parameter types (72 → 43 for a call without arguments).

  • #727 13ae075 Thanks @jxom! - Made AbiItem.fromAbi (and the fromAbi of AbiFunction, AbiEvent, AbiError) find a uniquely named item without collecting matches into an array, which cuts the memory a lookup allocates by about 4x.

  • #727 13ae075 Thanks @jxom! - Removed the top-level side effects of Errors.BaseError (its static initialization block), so bundles no longer keep BaseError and a module's unused error classes whenever they import anything from that module. Errors.BaseError.defaultStaticOptions is now a getter.

  • #727 13ae075 Thanks @jxom! - Made Bytes.fromNumber write non-negative values up to 2^53, and negative signed values of up to 6 bytes, without BigInt arithmetic (about 3-4x faster for non-negative values and 3x faster for negative ones), and larger values 32 bits per BigInt operation (about 3.5x faster for 200-bit values); the output and errors are unchanged.

  • #720 e4fc3ef Thanks @jxom! - Fixed Bytes.fromNumber taking quadratic time for values or sizes above 64 bytes.

  • #720 e4fc3ef Thanks @jxom! - Fixed Cbor.decode throwing a RangeError for a truncated 32-bit or 64-bit float instead of Cursor.PositionOutOfBoundsError.

  • #727 13ae075 Thanks @jxom! - Reduced the type instantiations of Signature and Signature.toRpc's input, of the as-dependent return types (Hash, Secp256k1, P256, Ed25519, Bls, Rlp and others), and of Rlp.fromHex and Rlp.fromBytes options, without changing the resolved types.

  • #727 13ae075 Thanks @jxom! - Gave dist its own package.json (type and sideEffects only), so Node no longer parses ox's whole exports map for every module it loads, which makes importing ox in Node about twice as fast (ox 260 → 125 ms, ox/Hex 11 → 6.5 ms).

  • #727 13ae075 Thanks @jxom! - Made Ens.normalize return names already in ENSIP-15 normal form (lowercase ASCII labels) without running the normalizer, which is about 60x faster for them; other names are normalized as before.

  • #727 13ae075 Thanks @jxom! - Wrote the ABI parameters behind SignatureErc6492.wrap/unwrap, Execute batch-of-batches encoding and decoding, and Calls.encode/decode/getAbiParameters out as JSON, so using them no longer bundles the human-readable ABI parser.

  • #727 13ae075 Thanks @jxom! - Improved SignatureErc6492.validate performance: it checks the magic suffix directly instead of catching the error assert throws, so an invalid signature returns false about 100× faster and the function no longer bundles the error classes.

  • #720 e4fc3ef Thanks @jxom! - Fixed Execute in ox/erc7821 importing the root ox barrel, which made importing ox/erc7821 load every ox module.

  • #727 13ae075 Thanks @jxom! - Wrote SignatureErc8010.suffixParameters out as JSON ABI parameters instead of parsing a human-readable signature at import, so importing anything from ox/erc8010 no longer runs or bundles the ABI parser.

  • #727 13ae075 Thanks @jxom! - Improved Hex.padLeft, Hex.padRight and sized hex encoding (Hex.fromBytes, Hex.fromString, Hex.fromNumber with size) performance: padding up to 32 bytes slices a li...

Read more

ox@0.15.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 19:16
10e4f6d

Minor Changes

  • #726 e238adb Thanks @jxom! - Bytes.fromHex (and so Rlp.fromHex, Rlp.toHex and every function that reads hex through it) now throws for a value that does not start with 0x, including an uppercase 0X prefix, as ox 1.x does, instead of reading its first two characters as the prefix. For example, Rlp.fromHex('abcd') returned 0x81cd, and Rlp.fromHex('0XAB') returned 0x81ab.

  • #722 538df0d Thanks @jxom! - Breaking: Removed AbiParameters.encodePacked.encode, a runtime namespace member that kept encodePacked (with Address.assert and keccak) in every bundle importing AbiParameters. AbiParameters.format, for example, drops from 5.9 kB to about 1.3 kB gzipped.

    - AbiParameters.encodePacked.encode('uint8', 1)
    + AbiParameters.encodePacked(['uint8'], [1])
    
  • #722 538df0d Thanks @jxom! - Improved type-checking of AbiParameters.encodePacked by about 8x (106,000 to 13,000 instantiations for a call) by constraining types to readonly unknown[] instead of a union that includes PackedAbiType[]. Values are still typed from the types, but types no longer autocompletes.

  • #722 538df0d Thanks @jxom! - Fixed Hex.toBigInt, Hex.toNumber, Bytes.toBigInt and Bytes.toNumber throwing a SyntaxError (or a NaN range error) for empty input; empty hex and bytes now read as zero.

  • #722 538df0d Thanks @jxom! - Improved type-checking of TypedData.encodeType, hashStruct, hashType, encodeData, encodeField and findTypeDependencies by about 700x (11,700 to 17 instantiations for a call): their types parameter is a plain record of { name, type } lists instead of abitype's TypedData.

  • #722 538df0d Thanks @jxom! - Breaking (ox/erc4337): UserOperation.toRpc dropped an EntryPoint 0.8 authorization; it now writes it as eip7702Auth, the field bundlers read (ERC-7769), and UserOperation.fromRpc reads it back. UserOperation.RpcV08 has eip7702Auth in place of authorization.

     const rpc: UserOperation.RpcV08 = {
       // ...
    -  authorization: { address, chainId: '0x1', nonce: '0x0', r, s, yParity: '0x0' },
    +  eip7702Auth: { address, chainId: '0x1', nonce: '0x0', r, s, yParity: '0x0' },
     }
    
  • #722 538df0d Thanks @jxom! - Breaking: Value.from (and fromEther, fromGwei) now throws Value.InvalidDecimalNumberError for input without digits ("", ".", "-", "-."), which returned 0n or threw a SyntaxError before, and Value.InvalidDecimalsError for negative or non-integer decimals. A negative value without integer digits, such as "-.0", now parses instead of throwing a SyntaxError.

Patch Changes

  • #726 e238adb Thanks @jxom! - Made AbiParameters.decode (and the ABI decoders built on it) faster for short data: the decoder copies words out of data of up to 64 bytes instead of taking views of it, which made V8 move the data to an ArrayBuffer first, and Bytes.toBigInt reads a fresh word without one. AbiParameters.decode of one word runs about 1.6x faster; the output and errors are unchanged.

  • #726 e238adb Thanks @jxom! - Made AbiFunction.encodeData faster and leaner: it writes the parameters' encoding straight after the selector instead of slicing and copying a 0x-prefixed encoding, AbiItem.getSelector and AbiItem.getSignatureHash no longer allocate a closure and an arguments array per call, and the ABI encoder sizes its list of parameters up front. encodeData of an (address, uint256) call goes from about 300 to 170 ns and from 1.1 kB to 360 B allocated.

  • #726 e238adb Thanks @jxom! - Made AbiParameters.encode build its output as one string of hex digits, instead of creating, slicing and concatenating a 0x string per word. AbiParameters.encode runs about 4x faster with a quarter of the memory, and AbiFunction.encodeData about 3x faster; the output and errors are unchanged.

  • #722 538df0d Thanks @jxom! - Wrote AbiError.solidityError and AbiError.solidityPanic out as literals with the signature hashes AbiError.from adds, instead of calling AbiError.from at module load, so using either no longer bundles the ABI parser and keccak (9.7 kB to 155 B gzipped).

  • #726 e238adb Thanks @jxom! - Made AbiItem.fromAbi (and AbiFunction.fromAbi, AbiError.fromAbi, AbiEvent.fromAbi) find a unique match without collecting the matches into an array first.

  • #726 e238adb Thanks @jxom! - Reduced the type instantiations of the ABI modules' generic signatures. Wide parameters (readonly AbiParameter[]) now resolve to readonly unknown[] without mapping every ABI type, and AbiItem.fromAbi.Options puts prepare in each of its branches instead of intersecting it with them. Parameters<typeof AbiFunction.encodeData> drops from about 10,800 instantiations to 500, AbiParameters.encode from 10,600 to 300, and AbiFunction.fromAbi and AbiItem.fromAbi from about 14,600 to 2,100. The types are unchanged.

  • #726 e238adb Thanks @jxom! - Made Address.checksum build the checksummed address from character codes instead of splitting, uppercasing and joining an array of characters.

  • #722 538df0d Thanks @jxom! - Made Address.isEqual check its inputs without bundling Address.checksum and keccak, which makes its bundle about 4x smaller.

  • #726 e238adb Thanks @jxom! - Made Errors.BaseError set its fields in its constructor instead of declaring them as class fields, which the ES2021 build compiled to an Object.defineProperty call each. Bundles that include an error shrink by about 30 bytes (gzip); errors keep the same properties in the same order.

  • #722 538df0d Thanks @jxom! - Removed the top-level side effects of Errors.BaseError (its static initialization block), so bundles no longer keep BaseError and a module's unused error classes whenever they import anything from that module. Errors.BaseError.defaultStaticOptions is now a getter.

  • #722 538df0d Thanks @jxom! - Fixed Base58 encoding of empty input and all-zero bytes, and Base58.toHex returning odd-length hex for values whose first byte is below 0x10.

  • #726 e238adb Thanks @jxom! - Made Base64.fromBytes encode with Uint8Array.prototype.toBase64 where the runtime has it (about 5x faster on Node 26), and Base64.toBytes decode without TextEncoder and a regular expression (about 6x faster). Valid input decodes as before. A character outside the Base64 alphabets now decodes as zero bits wherever it appears; before, one at the end of a group of four zeroed the group's three bytes, and a non-ASCII character counted once per UTF-8 byte.

  • #726 e238adb Thanks @jxom! - Made Bytes.fromNumber write its bytes directly instead of encoding the number as hex with Hex.fromNumber and decoding that: an unsigned safe integer that fits its size is written without BigInt arithmetic (about 2.5x faster with half the memory), and bundles that only encode numbers to bytes are about 30% smaller. A fractional size now throws for numbers as it already did for bigints. `He...

Read more

ox@1.8.21

Choose a tag to compare

@github-actions github-actions released this 23 Nov 19:55
6c82160

Patch Changes

  • #716 dca97e0 Thanks @brendanjryan! - Fixed Secp256k1.verify to reject signatures with a high s value when verifying against an address, matching the publicKey path and fixing SignatureEnvelope.verify in ox/tempo.

ox@1.8.20

Choose a tag to compare

@github-actions github-actions released this 23 Nov 05:36
383569d

Patch Changes

  • #710 93ba964 Thanks @jxom! - Fixed the internal ENS module importing the root ox barrel, which made Ens pull in every ox module for CommonJS consumers.

ox@0.14.71

Choose a tag to compare

@github-actions github-actions released this 23 Nov 19:47
353c49e

Patch Changes

  • #717 7bf0883 Thanks @jxom! - Fixed Secp256k1.verify to reject signatures with a high s value when verifying against an address, matching the publicKey path and fixing SignatureEnvelope.verify in ox/tempo.

ox@0.14.70

Choose a tag to compare

@github-actions github-actions released this 23 Nov 05:33
a62cfea

Patch Changes

  • #711 fcf2d33 Thanks @jxom! - Fixed the internal ENS module importing the root ox barrel, which made Ens pull in every ox module for CommonJS consumers.

ox@1.8.19

Choose a tag to compare

@github-actions github-actions released this 21 Nov 00:48
ac7af14

Patch Changes

  • #693 d7b57e1 Thanks @gomesalexandre! - Fixed Authorization.toRpc (and so TransactionRequest.toRpc, Transaction.toRpc and the eip7702Auth of UserOperation.toRpc) to encode r and s as uint256 quantities without leading zeros, which geth-based nodes require.

  • #690 3f1730c Thanks @gomesalexandre! - Fixed BinaryStateTree.merkelize hashing a 32-byte zero value as an empty leaf, which did not match EIP-7864.

  • #704 9c3280b Thanks @jxom! - Fixed BlockOverrides.toRpc and the zod BlockOverrides schemas to encode prevRandao as a 32-byte hash.

  • #703 b31cd5d Thanks @jxom! - Added requestsHash (EIP-7685) to Block.Block, Block.toRpc and the Block zod schemas, so post-Prague blocks no longer lose it on a round trip.

  • #712 a1641a2 Thanks @HereForTheTechNFT! - Fixed Siwe.validateMessage to assume the https scheme when the message omits scheme, per EIP-4361.

  • #705 061ebb0 Thanks @jxom! - Fixed Siwe.createMessage and Siwe.parseMessage to accept an IP literal domain with an optional port, such as [::1]:3000.

  • #695 ccbb1af Thanks @gomesalexandre! - Fixed Siwe.isUri to validate the authority of URIs that have a path, so Siwe.createMessage rejects a uri or resource such as uri://[::300.0.0.0]/p the same way it already rejected uri://[::300.0.0.0].

  • #705 061ebb0 Thanks @jxom! - Fixed Siwe.createMessage and Siwe.parseMessage accepting a comma in scheme.

  • #705 061ebb0 Thanks @jxom! - Fixed Siwe.createMessage to throw InvalidMessageFieldError when statement contains a carriage return, U+2028 or U+2029.

  • #691 6b94083 Thanks @gomesalexandre! - Fixed Transaction.toRpc to encode a legacy transaction's v without the one-byte limit, so EIP-155 transactions whose v is above 255 (chain IDs from 110) no longer throw Hex.IntegerOutOfRangeError.

  • #694 f0aaee7 Thanks @gomesalexandre! - Fixed the ox/zod Authorization.Signed schemas (and so Transaction.Eip7702) to accept RPC r and s values below 2**248, which nodes send without leading zeros, decoding them to 32-byte hex like Authorization.fromRpc and encoding them back to quantities.

  • #701 4c70533 Thanks @Iamsohungrynow! - Fixed the zod Signature.Legacy schema to accept EIP-155 v values above 255.

ox@0.14.69

Choose a tag to compare

@github-actions github-actions released this 21 Nov 00:43
e1634ac

Patch Changes

  • #706 ad49015 Thanks @jxom! - Fixed Authorization.toRpc (and so TransactionRequest.toRpc, Transaction.toRpc and the eip7702Auth of UserOperation.toRpc) to encode r and s as uint256 quantities without leading zeros, which geth-based nodes require.

  • #706 ad49015 Thanks @jxom! - Fixed BinaryStateTree.merkelize hashing a 32-byte zero value as an empty leaf, which did not match EIP-7864.

  • #706 ad49015 Thanks @jxom! - Fixed BlockOverrides.toRpc to encode prevRandao as a 32-byte hash.

  • #706 ad49015 Thanks @jxom! - Added requestsHash (EIP-7685) to Block.Block and Block.toRpc, so post-Prague blocks no longer lose it on a round trip.

  • #709 0cd7550 Thanks @jxom! - Accepted SIWE URIs with an authority and empty path.

  • #713 c7f9873 Thanks @jxom! - Fixed Siwe.validateMessage to assume the https scheme when the message omits scheme, per EIP-4361.

  • #709 0cd7550 Thanks @jxom! - Fixed Siwe.createMessage and Siwe.parseMessage to accept an IP literal domain with an optional port, such as [::1]:3000.

  • #709 0cd7550 Thanks @jxom! - Fixed Siwe.isUri to validate the authority of URIs that have a path, so Siwe.createMessage rejects a uri or resource such as uri://[::300.0.0.0]/p the same way it already rejected uri://[::300.0.0.0].

  • #706 ad49015 Thanks @jxom! - Fixed Siwe.createMessage and Siwe.parseMessage accepting a comma in scheme.

  • #706 ad49015 Thanks @jxom! - Fixed Siwe.createMessage to throw InvalidMessageFieldError when statement contains a carriage return, U+2028 or U+2029.

  • #706 ad49015 Thanks @jxom! - Fixed Transaction.toRpc to encode a legacy transaction's v without the one-byte limit, so EIP-155 transactions whose v is above 255 (chain IDs from 110) no longer throw Hex.IntegerOutOfRangeError.

ox@1.8.18

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:00
f831b50

Patch Changes

  • #689 03aeea3 Thanks @jxom! - Fixed AbiParameters.decode and AbiEvent.decode to throw AbiParameters.BytesSizeMismatchError for bytesN values whose padding bytes are not zero.

  • #689 03aeea3 Thanks @jxom! - Tightened the AbiParameters.decode read size limit from 32 bytes per byte of data to two, keeping the allowance of 32 bytes per allowed repeated read (256 KiB by default), so that offsets pointing many times at one region can add at most that fixed allowance to the decoded value rather than up to 32 times the data size.

  • #689 03aeea3 Thanks @jxom! - Fixed AbiParameters.encode and the ABI encoders built on it to throw Hex.InvalidHexValueError for bytes values containing non-hex characters instead of copying those characters into the output.

  • #689 03aeea3 Thanks @jxom! - Fixed AbiEvent.decode, AbiEvent.decodeLog and AbiEvent.extractLogs to reject indexed value topics longer than 32 bytes (Hex.SizeOverflowError), address topics with non-hex characters when decoded with checksumAddress: false (Address.InvalidAddressError, as with checksumming), and bytesN topics with non-hex characters (Hex.InvalidHexValueError).

  • #689 03aeea3 Thanks @jxom! - Cached AbiItem.getSignatureHash and the selectors derived from it per ABI item object, which speeds up AbiEvent.decodeLog and encoding with plain ABI items, so an item mutated after it was first hashed keeps its first hash until Caches.clear runs.

  • #689 03aeea3 Thanks @jxom! - Added Cbor.DepthLimitExceededError, which Cbor.decode throws for values nested more than 1024 levels deep instead of overflowing the stack.

  • #675 9d8389c Thanks @pucedoteth! - Fixed the Cbor.NumberTooLargeError message to state the integer range Cbor.encode supports (-4294967296 to 4294967295) instead of Number.MAX_SAFE_INTEGER.

  • #683 7421689 Thanks @jxom! - Fixed AbiParameters.encodePacked to throw Hex.InvalidLengthError for bytes hex values with an odd number of digits instead of returning misaligned data.

  • #697 be605c1 Thanks @adraffy! - Switched Ens.normalize from @adraffy/ens-normalize to @adraffy/ens-normalize.ts. Output and error messages are unchanged. The new package is smaller, and normalizing names with emoji no longer fails on Hermes (React Native).

  • #683 7421689 Thanks @jxom! - Fixed SignatureErc6492.universalSignatureValidatorBytecode to return false when ecrecover yields the zero address, so a malformed signature no longer verifies for the zero address.

  • #689 03aeea3 Thanks @jxom! - Changed Hex.concat to drop the first two characters of every value, as it already did when given two values, instead of removing the first 0x found anywhere in each value.

  • #686 93361ec Thanks @jxom! - Improved performance and memory use of Blobs.from, Blobs.to, AbiParameters.decode, Bytes.toBigInt, TypedData hashing (type hashes are now cached), Base58 encoding and decoding, Hex.validate and Bytes.validate (which no longer throw and catch internally), and concurrent VirtualMaster.mineSaltAsync worker pool setup.

  • #689 03aeea3 Thanks @jxom! - Fixed RpcTransport.HttpError to show a string request body as is instead of JSON-encoding it a second time.

  • #689 03aeea3 Thanks @jxom! - Fixed Transaction.fromRpc, TransactionReceipt.fromRpc (including its frame receipts and the ox/tempo variant) and FrameReceipt.fromRpc to map only known types and statuses, so that values such as constructor, toString or __proto__ no longer resolve to Object.prototype members.

  • #689 03aeea3 Thanks @jxom! - Fixed RpcTransport.fromHttp to reject with Promise.TimeoutError when the timeout elapses even if a custom fetchFn ignores the abort signal.

  • #681 9602044 Thanks @bdchatham! - Fixed ZoneId.fromChainId for zones of Tempo chains other than mainnet and Moderato, whose chain IDs carry the source chain ID in the high 32 bits and the zone ID in the low 32 bits.

ox@0.14.68

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:57
2234b20

Patch Changes

  • #688 af9a628 Thanks @jxom! - Fixed AbiParameters.decode to throw AbiParameters.BytesSizeMismatchError when a bytesN value has non-zero padding, and AbiEvent.decode to throw AbiEvent.TopicSizeMismatchError when a topic for a statically typed indexed parameter is not 32 bytes.

  • #688 af9a628 Thanks @jxom! - Changed Address.assert and Address.validate to reject values that are not strings. Before, strict: false coerced them to strings, and strict mode threw a TypeError from assert.

  • #688 af9a628 Thanks @jxom! - Fixed Cbor.decode to throw Cbor.DepthLimitExceededError when values nest deeper than 1024 instead of overflowing the stack.

  • #684 0911585 Thanks @jxom! - Improved Address.checksum to compute the checksum once for every casing of an address and cache it only under the lowercase address, and fixed the cache to refresh an entry on write and to evict an empty-string key.

  • #688 af9a628 Thanks @jxom! - Improved the performance of Rlp encoding and decoding, transaction envelope serialization, AbiParameters.encode, ABI decoding of full uint256 words, AbiEvent.decode, Json.parse, Hex.fromNumber for bigints, signed Hex.toBigInt, and Address.validate.

  • #684 0911585 Thanks @jxom! - Fixed AbiParameters.encodePacked to throw Hex.InvalidLengthError for bytes hex values with an odd number of digits instead of returning misaligned data.

  • #684 0911585 Thanks @jxom! - Fixed SignatureErc6492.universalSignatureValidatorBytecode to return false when ecrecover yields the zero address, so a malformed signature no longer verifies for the zero address.

  • #687 d693734 Thanks @jxom! - Fixed Blobs.to truncating multi-blob payloads when a non-final blob contained a 0x80 byte.

  • #687 d693734 Thanks @jxom! - Improved the speed and memory use of Hex and Bytes conversions, ABI decoding, Blobs.from, Blobs.to, Base58, and TypedData hashing, and made Hex.validate, Bytes.validate, and Address.validate return false without constructing an error.

  • #688 af9a628 Thanks @jxom! - Fixed Hex.toNumber and Bytes.toNumber to throw Hex.IntegerOutOfRangeError instead of returning a rounded number or NaN when the value is not a safe integer.

  • #688 af9a628 Thanks @jxom! - Fixed RpcTransport.HttpError to show a request body that is already a string without encoding it twice.

  • #688 af9a628 Thanks @jxom! - Fixed Json.parse to keep a string that ends in #__bigint but is not a bigint as a string instead of throwing.

  • #688 af9a628 Thanks @jxom! - Fixed Rlp.toBytes and Rlp.toHex, and so every TxEnvelope*.deserialize, to throw Rlp.TrailingBytesError on bytes after the item, Rlp.ListBoundaryExceededError when an item overruns its list, and Rlp.DepthLimitExceededError when lists nest deeper than 1024. TxEnvelopeTempo.deserialize still accepts a signed transaction followed by sender ‖ 0xfeefeefeefee, as passed to a fee payer.

  • #688 af9a628 Thanks @jxom! - Fixed Siwe.generateNonce to draw every nonce from crypto.getRandomValues instead of a sliding window over a Math.random buffer that made consecutive nonces share 95 of 96 characters.

  • #688 af9a628 Thanks @jxom! - Fixed Transaction, TransactionReceipt, TransactionRequest and TypedData to look up untrusted type names such as "constructor" only among their own keys, and TransactionReceipt and FrameReceipt to do the same for statuses, instead of the object prototype.

  • #682 4c0eb9f Thanks @bdchatham! - Fixed ZoneId.fromChainId for zones of Tempo chains other than mainnet and Moderato, whose chain IDs carry the source chain ID in the high 32 bits and the zone ID in the low 32 bits.