Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
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
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
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
…h SignatureEnvelope.from Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-b992045f9165
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
…n TransactionRequest.toRpc Amp-Thread-ID: https://ampcode.com/threads/T-019e197d-5765-7569-9e8b-a8a740d3ed8f
…lar return codecs Amp-Thread-ID: https://ampcode.com/threads/T-019ed995-3ad0-77e6-8cc8-af5d1597efc5
* feat(abi): move human-readable utils into ox * chore: bump vocs * chore: up * chore: up * chore: format
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
* 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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking changes
Hex-encoded crypto coordinates. Migrated
Signature,PublicKey,BlsPoint, and all envelope types (Transaction, Authorization, ERC envelopes, Tempo) frombigintr/s/x/y/Fp/Fp2to paddedHex.Hex(32-byte for secp256k1/P256/WebAuthnP256, 48-byte for BLS12-381). ThebigintTypegeneric is removed.@noble/*v2. Upgraded@noble/ciphers,@noble/curves,@noble/hashes,@scure/bip32,@scure/bip39. ECDSA signatures (Secp256k1,P256) now default tolowS: true. Module.noblere-exports follow v2 (randomSecretKey,Point,bls.longSignatures.*, etc.).PeerDAS (EIP-7594) blob model. Removed the EIP-4844 blob-sidecar surface (
Blobs.toSidecars,Blobs.BlobSidecar(s),TxEnvelopeEip4844.sidecars,Kzg.Kzg.computeBlobKzgProof). Added theBlobCellsmodule for cell/column propagation. KZG backends must implementcomputeCells,computeCellsAndKzgProofs,recoverCellsAndKzgProofs,verifyCellKzgProofBatch.ABI decode checksums by default.
AbiParameters.decode(and downstreamAbiFunction/AbiEvent/AbiErrordecoders) checksum decodedaddressoutputs. Opt out withchecksumAddress: false.Notable additions
Crypto serialized inputs and
asoption.Secp256k1,P256,WebCryptoP256, andBlsnow acceptHex.Hex | Bytes.Bytes | Signature.Signature | PublicKey.PublicKeyforsignature/publicKeyparams, and exposeas: 'Hex' | 'Bytes' | 'Object'onsign/getPublicKey/recoverPublicKey.AbiEvent.decodeLog. Extract and decode an event log directly from an ABI.AbiEvent.extractLogs. Filter and decode logs from a batch against an ABI.AbiError.extract. Select the matching ABI error from revert data and decode its arguments.AbiFunction.decodeDataselector inference. Pass an ABI plus calldata and the function is resolved from the 4-byte selector. Decoding selector-only calldata for a function with inputs now throwsAbiParameters.DataSizeTooSmallErrorinstead of silently returningundefined, and constructorlessAbiConstructordeploy data is now allowed when there are no arguments.Transaction envelope router.
TxEnvelope.from/serialize/deserialize/hash/getSignPayload/toRpcinfer the envelope type from input properties and route to the matchingTxEnvelopeLegacy/TxEnvelopeEip2930/TxEnvelopeEip1559/TxEnvelopeEip4844/TxEnvelopeEip7702module.