lemonknowsall
|
b40f59af74
|
Upgrade to @noble/curves ^2.0.1 and @noble/hashes ^2.0.1
This commit upgrades the noble cryptography dependencies to v2.0.1, which includes:
Breaking changes addressed:
- Updated all @noble imports to include .js extensions (required by v2 ESM-only API)
- Changed @noble/hashes/sha256 to @noble/hashes/sha2.js across 8 files
- Fixed secp256k1 API changes: methods now require Uint8Array instead of hex strings
- Updated schnorr.utils.randomPrivateKey() to schnorr.utils.randomSecretKey()
Files modified (27 total):
- package.json: Bump dependency versions
- Source files (12): pure.ts, nip04.ts, nip06.ts, nip13.ts, nip19.ts, nip44.ts,
nip49.ts, nip77.ts, nip98.ts, nipb7.ts, utils.ts, wasm.ts
- Test files (14): All corresponding test files updated
Benefits:
- Latest security updates from audited noble libraries
- Smaller bundle sizes from v2 optimizations
- Future-proof ESM-only compatibility
- All tests passing
Co-authored-by: OpenCode <opencode@anomalyco.com>
|
2026-01-24 09:41:15 -03:00 |
|
fiatjaf
|
2a11c9ec91
|
nip04: functions shouldn't be async.
|
2025-04-02 10:19:27 -03:00 |
|
fiatjaf
|
84f9881812
|
use @noble/ciphers instead of webcrypto on nip04.
|
2024-02-17 18:15:42 -03:00 |
|
fiatjaf
|
fe87529646
|
change tests and nips to use the new api.
|
2023-12-19 13:58:37 -03:00 |
|
Alex Gleason
|
718032022c
|
just format
|
2023-08-31 13:42:15 -05:00 |
|
Alex Gleason
|
08885ab8da
|
Refactor imports: use file extension, improve tree shaking, update tests
|
2023-05-12 17:03:41 -03:00 |
|
Paul Miller
|
03cc18d53b
|
bring back @noble/curves instead of @noble/secp256k1.
fixes https://github.com/nbd-wtf/nostr-tools/issues/196#issuecomment-1537549606
|
2023-05-07 21:16:48 -03:00 |
|
Alex Gleason
|
8a53b3b8b3
|
Improve event types
|
2023-05-06 21:00:25 -03:00 |
|
eosxx
|
1647601727
|
fix: check crypto and webcrypto
|
2023-04-28 05:56:25 -03:00 |
|
eosxx
|
b66ca1787a
|
fix(nip04): crypto.subtle is undefined
|
2023-04-28 05:56:25 -03:00 |
|
fiatjaf
|
ef3184a6e0
|
remove @noble/curves. people are not ready for it, causes BigInt issues.
|
2023-04-18 15:14:21 -03:00 |
|
Paul Miller
|
204ae0eff1
|
Switch from noble-secp256k1 to noble-curves
|
2023-04-14 16:45:01 -03:00 |
|
fiatjaf
|
50c3f24b25
|
replace two packages with a @scure dependency that already existed.
|
2022-12-27 11:35:21 -03:00 |
|
fiatjaf
|
41a1614d89
|
remove browserify-cipher, use crypto.subtle for nip04.
|
2022-12-21 16:04:00 -03:00 |
|
fiatjaf
|
de8bdd8370
|
fix typescript types everywhere, delete pool.js and refactor relay.js to use event listeners everywhere.
|
2022-12-18 17:02:19 -03:00 |
|