Skip to content

Commit

Permalink
chore: update libp2p-noise to use simd aware as-sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Jan 21, 2025
1 parent d584aed commit e1fc02b
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/beacon-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"@chainsafe/enr": "^3.0.0",
"@chainsafe/libp2p-gossipsub": "^13.0.0",
"@chainsafe/libp2p-identify": "^1.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-noise": "^16.0.1",
"@chainsafe/persistent-merkle-tree": "^0.9.1",
"@chainsafe/prometheus-gc-stats": "^1.0.0",
"@chainsafe/pubkey-index-map": "2.0.0",
Expand Down
123 changes: 107 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -565,25 +565,25 @@
uint8arrays "^5.0.0"
wherearewe "^2.0.1"

"@chainsafe/libp2p-noise@^15.0.0":
version "15.0.0"
resolved "https://registry.yarnpkg.com/@chainsafe/libp2p-noise/-/libp2p-noise-15.0.0.tgz#c3f38a31d03d96b475f7e35b592a22f5fe9269a0"
integrity sha512-O8Y/WVU4J/qrnG72jwVhbmdXiBzv1dT9B3PMClCRmZ9z/5vVPEGRVXE/SVYeGF3bNuBTLoh+F+GaKG/9UHlMhg==
"@chainsafe/libp2p-noise@^16.0.1":
version "16.0.1"
resolved "https://registry.yarnpkg.com/@chainsafe/libp2p-noise/-/libp2p-noise-16.0.1.tgz#73115fd15c72fc3c531bb6566c7c1e8c7d733cdf"
integrity sha512-U3fbVFbznVoHRbv+3mhMz8QPWSBF46erXxhDlFuhy55XTluVsQTvsokf/NnvU9zrjEpNfOnGcl36JkiKj7Bj3w==
dependencies:
"@chainsafe/as-chacha20poly1305" "^0.1.0"
"@chainsafe/as-sha256" "^0.4.1"
"@libp2p/crypto" "^4.0.0"
"@libp2p/interface" "^1.0.0"
"@libp2p/peer-id" "^4.0.0"
"@noble/ciphers" "^0.4.0"
"@chainsafe/as-sha256" "^0.6.1"
"@libp2p/crypto" "^5.0.0"
"@libp2p/interface" "^2.0.0"
"@libp2p/peer-id" "^5.0.0"
"@noble/ciphers" "^0.6.0"
"@noble/curves" "^1.1.0"
"@noble/hashes" "^1.3.1"
it-length-prefixed "^9.0.1"
it-length-prefixed-stream "^1.0.0"
it-pair "^2.0.6"
it-pipe "^3.0.1"
it-stream-types "^2.0.1"
protons-runtime "^5.0.0"
protons-runtime "^5.5.0"
uint8arraylist "^2.4.3"
uint8arrays "^5.0.0"
wherearewe "^2.0.1"
Expand Down Expand Up @@ -1696,7 +1696,7 @@
"@multiformats/mafmt" "^12.1.6"
"@multiformats/multiaddr" "^12.2.1"

"@libp2p/crypto@^4.0.0", "@libp2p/crypto@^4.0.1", "@libp2p/crypto@^4.1.0":
"@libp2p/crypto@^4.0.1", "@libp2p/crypto@^4.1.0":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@libp2p/crypto/-/crypto-4.1.0.tgz#722060a77ced262dc89c7e42fc19ae67506b74ac"
integrity sha512-Gu4jkSdrVk1LOeyiOAuktmtN5pbSq6b9byzch2CfclFGZgXrHg3b46I0Fy63nZBc60Wq2KID3MQMVuRkVkDwAw==
Expand All @@ -1710,6 +1710,20 @@
uint8arraylist "^2.4.8"
uint8arrays "^5.0.3"

"@libp2p/crypto@^5.0.0", "@libp2p/crypto@^5.0.9":
version "5.0.9"
resolved "https://registry.yarnpkg.com/@libp2p/crypto/-/crypto-5.0.9.tgz#0bab8d301b3ada2f8a1c6fb132811d0a7de4d45a"
integrity sha512-KR+KK1d7BfwUIC/zKN1PhS4elY/6TNWMl//34O2xA/YzSJl6vW/62oXG/XD5ieqjq7qbJZWsgbSRry8w/vDHBg==
dependencies:
"@libp2p/interface" "^2.4.0"
"@noble/curves" "^1.7.0"
"@noble/hashes" "^1.6.1"
asn1js "^3.0.5"
multiformats "^13.3.1"
protons-runtime "^5.5.0"
uint8arraylist "^2.4.8"
uint8arrays "^5.1.0"

"@libp2p/identify@^1.0.20":
version "1.0.20"
resolved "https://registry.yarnpkg.com/@libp2p/identify/-/identify-1.0.20.tgz#cce6c4efad77afe6c0b26b0704a902f2fdbaeab2"
Expand Down Expand Up @@ -1749,6 +1763,18 @@
progress-events "^1.0.0"
uint8arraylist "^2.4.8"

"@libp2p/interface@^2.0.0", "@libp2p/interface@^2.4.0":
version "2.4.0"
resolved "https://registry.yarnpkg.com/@libp2p/interface/-/interface-2.4.0.tgz#18106eb6bc529ab660588205f514e3789ae61f19"
integrity sha512-PfzxOaz7dU4sdnUNByGLoEk9iqhD0IS+LQMQB12CXh6VyYLA7J8oaoHk3yRBZze3Y4FPa5DHMm5Oi9O/IhreaQ==
dependencies:
"@multiformats/multiaddr" "^12.3.3"
it-pushable "^3.2.3"
it-stream-types "^2.0.2"
multiformats "^13.3.1"
progress-events "^1.0.1"
uint8arraylist "^2.4.8"

"@libp2p/logger@^4.0.11", "@libp2p/logger@^4.0.6":
version "4.0.11"
resolved "https://registry.yarnpkg.com/@libp2p/logger/-/logger-4.0.11.tgz#671692a0cceee73a0c0bf9b5f05ea14fde05f5e5"
Expand Down Expand Up @@ -1823,7 +1849,7 @@
uint8arraylist "^2.4.8"
uint8arrays "^5.0.3"

"@libp2p/peer-id@^4.0.0", "@libp2p/peer-id@^4.0.4", "@libp2p/peer-id@^4.0.5", "@libp2p/peer-id@^4.1.0":
"@libp2p/peer-id@^4.0.4", "@libp2p/peer-id@^4.0.5", "@libp2p/peer-id@^4.1.0":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@libp2p/peer-id/-/peer-id-4.1.0.tgz#460e07d5b25339cf80afcb5e30c4f701423d1755"
integrity sha512-XmuqEfz3H+Cwq72V3opXg7wK2WnB08VEnG5nLILefLg+qo1KMlUP5pCP3ffyvYIvxMnsRla/xPYRDEBtL2JMpg==
Expand All @@ -1832,6 +1858,16 @@
multiformats "^13.1.0"
uint8arrays "^5.0.3"

"@libp2p/peer-id@^5.0.0":
version "5.0.10"
resolved "https://registry.yarnpkg.com/@libp2p/peer-id/-/peer-id-5.0.10.tgz#9d56e81831ac79f20e4d0ebc721911a0ec0d4bd7"
integrity sha512-+rj61RN3VnmnVoO64LaIZAdLYW2VLsBeSuWIIjeYUXy1U2CpPAzrxmHBQw3YmM2Ozis3FbLgol4pM/9mXsbn2g==
dependencies:
"@libp2p/crypto" "^5.0.9"
"@libp2p/interface" "^2.4.0"
multiformats "^13.3.1"
uint8arrays "^5.1.0"

"@libp2p/peer-record@^7.0.15", "@libp2p/peer-record@^7.0.7":
version "7.0.15"
resolved "https://registry.yarnpkg.com/@libp2p/peer-record/-/peer-record-7.0.15.tgz#063f302fb52ebe6c548a4533e3fa3b910efdfc84"
Expand Down Expand Up @@ -2035,6 +2071,18 @@
uint8-varint "^2.0.1"
uint8arrays "^5.0.0"

"@multiformats/multiaddr@^12.3.3":
version "12.3.4"
resolved "https://registry.yarnpkg.com/@multiformats/multiaddr/-/multiaddr-12.3.4.tgz#3dd3d7d76f95ce9c8768770e8008a99de9b7ba49"
integrity sha512-R4pEEUyWGrRo16TSflz80Yr6XNbPirix1pfPqDLXsDZ4aaIrhZ7cez9jnyRQgci6DuuqSyZAdJKV6SdxpZ7Oiw==
dependencies:
"@chainsafe/is-ip" "^2.0.1"
"@chainsafe/netmask" "^2.0.0"
"@multiformats/dns" "^1.0.3"
multiformats "^13.0.0"
uint8-varint "^2.0.1"
uint8arrays "^5.0.0"

"@napi-rs/snappy-android-arm-eabi@7.2.2":
version "7.2.2"
resolved "https://registry.yarnpkg.com/@napi-rs/snappy-android-arm-eabi/-/snappy-android-arm-eabi-7.2.2.tgz#85fee3ba198dad4b444b5f12bceebcf72db0d65e"
Expand Down Expand Up @@ -2100,10 +2148,10 @@
resolved "https://registry.yarnpkg.com/@napi-rs/snappy-win32-x64-msvc/-/snappy-win32-x64-msvc-7.2.2.tgz#4f598d3a5d50904d9f72433819f68b21eaec4f7d"
integrity sha512-a43cyx1nK0daw6BZxVcvDEXxKMFLSBSDTAhsFD0VqSKcC7MGUBMaqyoWUcMiI7LBSz4bxUmxDWKfCYzpEmeb3w==

"@noble/ciphers@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@noble/ciphers/-/ciphers-0.4.0.tgz#e3f69e3ce935683dd8dadb636652a5cb5cd5958c"
integrity sha512-xaUaUUDWbHIFSxaQ/pIe+33VG2mfJp6N/KxKLmZr5biWdNznCAmfu24QRhX10BbVAuqOahAoyp0S4M9md6GPDw==
"@noble/ciphers@^0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@noble/ciphers/-/ciphers-0.6.0.tgz#a3d82c72ce71ba43128e7eb71757b5ecb75b1273"
integrity sha512-mIbq/R9QXk5/cTfESb1OKtyFnk7oc1Om/8onA1158K9/OZUQFDEVy55jVTato+xmp3XX6F6Qh0zz0Nc1AxAlRQ==

"@noble/curves@1.3.0", "@noble/curves@^1.1.0", "@noble/curves@~1.3.0":
version "1.3.0"
Expand All @@ -2119,6 +2167,13 @@
dependencies:
"@noble/hashes" "1.4.0"

"@noble/curves@^1.7.0":
version "1.8.1"
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.8.1.tgz#19bc3970e205c99e4bdb1c64a4785706bce497ff"
integrity sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==
dependencies:
"@noble/hashes" "1.7.1"

"@noble/hashes@1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.1.2.tgz#e9e035b9b166ca0af657a7848eb2718f0f22f183"
Expand All @@ -2134,6 +2189,11 @@
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426"
integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==

"@noble/hashes@1.7.1", "@noble/hashes@^1.6.1":
version "1.7.1"
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.7.1.tgz#5738f6d765710921e7a751e00c20ae091ed8db0f"
integrity sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==

"@noble/hashes@~1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.0.0.tgz#d5e38bfbdaba174805a4e649f13be9a9ed3351ae"
Expand Down Expand Up @@ -7969,6 +8029,11 @@ it-stream-types@^2.0.1:
resolved "https://registry.yarnpkg.com/it-stream-types/-/it-stream-types-2.0.1.tgz#69cb4d7e79e707b8257a8997e02751ccb6c3af32"
integrity sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==

it-stream-types@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/it-stream-types/-/it-stream-types-2.0.2.tgz#60bbace90096796b4e6cc3bfab99cf9f2b86c152"
integrity sha512-Rz/DEZ6Byn/r9+/SBCuJhpPATDF9D+dz5pbgSUyBsCDtza6wtNATrz/jz1gDyNanC3XdLboriHnOC925bZRBww==

it-take@^3.0.1, it-take@^3.0.4:
version "3.0.5"
resolved "https://registry.yarnpkg.com/it-take/-/it-take-3.0.5.tgz#c5a82cb160d5d7767954d84c6ce30d680f884b77"
Expand Down Expand Up @@ -9256,6 +9321,11 @@ multiformats@^13.0.0, multiformats@^13.0.1, multiformats@^13.1.0:
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-13.1.0.tgz#5aa9d2175108a448fc3bdb54ba8a3d0b6cab3ac3"
integrity sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==

multiformats@^13.3.1:
version "13.3.1"
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-13.3.1.tgz#ea30d134b5697dcf2036ac819a17948f8a1775be"
integrity sha512-QxowxTNwJ3r5RMctoGA5p13w5RbRT2QDkoM+yFlqfLiioBp78nhDjnRLvmSBI9+KAqN4VdgOVWM9c0CHd86m3g==

multimatch@5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-5.0.0.tgz#932b800963cea7a31a033328fa1e0c3a1874dbe6"
Expand Down Expand Up @@ -10385,6 +10455,11 @@ progress-events@^1.0.0:
resolved "https://registry.yarnpkg.com/progress-events/-/progress-events-1.0.0.tgz#34f5e8fdb5dae3561837b22672d1e02277bb2109"
integrity sha512-zIB6QDrSbPfRg+33FZalluFIowkbV5Xh1xSuetjG+rlC5he6u2dc6VQJ0TbMdlN3R1RHdpOqxEFMKTnQ+itUwA==

progress-events@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/progress-events/-/progress-events-1.0.1.tgz#693b6d4153f08c1418ae3cd5fcad8596c91db7e8"
integrity sha512-MOzLIwhpt64KIVN64h1MwdKWiyKFNc/S6BoYKPIVUHFg0/eIEyBulhWCgn678v/4c0ri3FdGuzXymNCv02MUIw==

progress@^2.0.3:
version "2.0.3"
resolved "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz"
Expand Down Expand Up @@ -10448,6 +10523,15 @@ protons-runtime@5.4.0, protons-runtime@^5.0.0, protons-runtime@^5.4.0:
uint8arraylist "^2.4.3"
uint8arrays "^5.0.1"

protons-runtime@^5.5.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/protons-runtime/-/protons-runtime-5.5.0.tgz#ea06d9ef843aad77ea5de3e1ebafa81b58c24570"
integrity sha512-EsALjF9QsrEk6gbCx3lmfHxVN0ah7nG3cY7GySD4xf4g8cr7g543zB88Foh897Sr1RQJ9yDCUsoT1i1H/cVUFA==
dependencies:
uint8-varint "^2.0.2"
uint8arraylist "^2.4.3"
uint8arrays "^5.0.1"

proxy-addr@^2.0.7:
version "2.0.7"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025"
Expand Down Expand Up @@ -12360,6 +12444,13 @@ uint8arrays@^5.0.0, uint8arrays@^5.0.1, uint8arrays@^5.0.2, uint8arrays@^5.0.3:
dependencies:
multiformats "^13.0.0"

uint8arrays@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-5.1.0.tgz#14047c9bdf825d025b7391299436e5e50e7270f1"
integrity sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==
dependencies:
multiformats "^13.0.0"

unbox-primitive@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e"
Expand Down

0 comments on commit e1fc02b

Please sign in to comment.