Repository navigation
chore(deps): bump ox from 0.14.45 to 1.8.13 #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,7 +74,7 @@ | |
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "ox": "^0.14.45" | ||
| "ox": "^1.8.13" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should: ox 0.14.45 shipped with an npm provenance attestation and 1.8.13 does not; no 1.x release before 1.8.15 is attested. The publisher is the same trusted GitHub workflow and the tarball source matches the Suggestion: target |
||
| }, | ||
| "peerDependencies": { | ||
| "viem": "^2.21.0" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must: ox 1.x changes the P-256 shapes this package uses, and this bump does not migrate them, so CI fails on typecheck and 12 P-256 tests fail. At runtime it is worse:
P256.noble.ProjectivePointno longer exists (noble v2 renamed it toPoint), and the catch inoxPublicKey(src/p256.ts:43) turns that into "P-256 public key is not a point on the curve", so every valid key is rejected. ox 1.0.0 also movedx,y,randsfrom bigint to 32-byte padded hex.Code to migrate:
src/p256.tsL43, L60, L68-69, L87-88;src/signatures.tsL226-230;test/p256.test.tsL86-95.Suggestion: use
P256.noble.Point.fromHex, type the key asReturnType<typeof P256.getPublicKey<'Object'>>, concatpoint.x,point.y,randsdirectly, and pass hexx/yplusnumberToHex(r|s, { size: 32 })toP256.verify. With that change typecheck, all 373 tests and the build pass, and addresses, public keys and signatures match the current release on 5000 deterministic keys, including keys with a leading zero byte. This migration is in #62.