-
Notifications
You must be signed in to change notification settings - Fork 83
Update crypto dependencies to 2.x (for review only) #800
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
base: mh--sdk-v2-crypto-dep-revert
Are you sure you want to change the base?
Update crypto dependencies to 2.x (for review only) #800
Conversation
Bump @scure/base from ^1.2.6 to ^2.0.0 in packages/bcs, packages/utils, and packages/sui. No code changes required for this upgrade. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Bump @scure/bip32 from ^1.7.0 to ^2.0.1 in packages/sui. No code changes required for this upgrade. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Bump @scure/bip39 from ^1.6.0 to ^2.0.1 in packages/sui. No code changes required for this upgrade. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Bump @noble/hashes from ^1.8.0 to ^2.0.1. Code changes: - Update import paths for module reorganization: - @noble/hashes/sha256 -> @noble/hashes/sha2.js - @noble/hashes/sha512 -> @noble/hashes/sha2.js - @noble/hashes/blake2b -> @noble/hashes/blake2.js - @noble/hashes/sha3 -> @noble/hashes/sha3.js - @noble/hashes/hmac -> @noble/hashes/hmac.js - @noble/hashes/utils -> @noble/hashes/utils.js - hmac.create now requires Uint8Array key instead of string Affected packages: @mysten/sui, @mysten/seal, @mysten/deepbook-v3 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Bump @noble/curves from =1.9.4 to ^2.0.1.
Code changes:
- Update import paths:
- @noble/curves/p256 -> @noble/curves/nist.js (as p256)
- @noble/curves/secp256k1 -> @noble/curves/secp256k1.js
- @noble/curves/ed25519 -> @noble/curves/ed25519.js
- @noble/curves/bls12-381 -> @noble/curves/bls12-381.js
- @noble/curves/abstract/utils -> @noble/curves/utils.js
- API changes:
- randomPrivateKey() -> randomSecretKey()
- Signature.fromCompact() -> Signature.fromBytes()
- Signature.toCompactRawBytes() -> Signature.toBytes('compact')
- Signature.fromDER() -> Signature.fromBytes(sig, 'der')
- normalizeS() -> hasHighS() + manual low-S normalization
- ProjectivePoint -> Point
- toRawBytes() -> toBytes()
- verifyShortSignature() -> shortSignatures.verify() + hash()
- sign() now handles prehashing internally
Affected packages: @mysten/sui, @mysten/seal, @mysten/signers
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Summary
@scure/baseto 2.x@scure/bip32to 2.x@scure/bip39to 2.x@noble/hashesto 2.x (includes import path changes)@noble/curvesto 2.x (includes API changes)Each dependency update is in a separate commit with its corresponding code changes for easier review.
Test plan
sdk-v2branch🤖 Generated with Claude Code