@libp2p/crypto
Advanced tools
Comparing version 1.0.17-3dfc236e to 1.0.17-42c1c097
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
const CIPHER_MODES = { | ||
@@ -3,0 +3,0 @@ 16: 'aes-128-ctr', |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'; | ||
@@ -3,0 +3,0 @@ import { equals as uint8ArrayEquals } from 'uint8arrays/equals'; |
import crypto from 'crypto'; | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
const curves = { | ||
@@ -4,0 +4,0 @@ 'P-256': 'prime256v1', |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import { base58btc } from 'multiformats/bases/base58'; | ||
@@ -3,0 +3,0 @@ import { identity } from 'multiformats/hashes/identity'; |
@@ -9,3 +9,3 @@ import 'node-forge/lib/asn1.js'; | ||
import * as Secp256k1 from './secp256k1-class.js'; | ||
import type { PrivateKey, PublicKey } from '@libp2p/interface-keys'; | ||
import type { PrivateKey, PublicKey } from '@libp2p/interface/keys'; | ||
export { keyStretcher }; | ||
@@ -12,0 +12,0 @@ export { generateEphemeralKeyPair }; |
import 'node-forge/lib/asn1.js'; | ||
import 'node-forge/lib/pbe.js'; | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
// @ts-expect-error types are missing | ||
@@ -5,0 +5,0 @@ import forge from 'node-forge/lib/forge.js'; |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'; | ||
@@ -3,0 +3,0 @@ import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'; |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'; | ||
@@ -3,0 +3,0 @@ import { toString as uint8ArrayToString } from 'uint8arrays/to-string'; |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import { sha256 } from 'multiformats/hashes/sha2'; | ||
@@ -3,0 +3,0 @@ // @ts-expect-error types are missing |
import 'node-forge/lib/asn1.js'; | ||
import 'node-forge/lib/rsa.js'; | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
// @ts-expect-error types are missing | ||
@@ -5,0 +5,0 @@ import forge from 'node-forge/lib/forge.js'; |
import crypto from 'crypto'; | ||
import { promisify } from 'util'; | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import randomBytes from '../random-bytes.js'; | ||
@@ -5,0 +5,0 @@ import * as utils from './rsa-utils.js'; |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import { sha256 } from 'multiformats/hashes/sha2'; | ||
@@ -3,0 +3,0 @@ import { equals as uint8ArrayEquals } from 'uint8arrays/equals'; |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import * as secp from '@noble/secp256k1'; | ||
@@ -3,0 +3,0 @@ import { sha256 } from 'multiformats/hashes/sha2'; |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
// @ts-expect-error types are missing | ||
@@ -3,0 +3,0 @@ import forgePbkdf2 from 'node-forge/lib/pbkdf2.js'; |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors'; | ||
import { CodeError } from '@libp2p/interface/errors'; | ||
import { utils } from '@noble/secp256k1'; | ||
@@ -3,0 +3,0 @@ export default function randomBytes(length) { |
{ | ||
"name": "@libp2p/crypto", | ||
"version": "1.0.17-3dfc236e", | ||
"version": "1.0.17-42c1c097", | ||
"description": "Crypto primitives for libp2p", | ||
@@ -79,3 +79,3 @@ "license": "Apache-2.0 OR MIT", | ||
"lint": "aegir lint", | ||
"dep-check": "aegir dep-check -i protons", | ||
"dep-check": "aegir dep-check", | ||
"build": "aegir build", | ||
@@ -87,3 +87,3 @@ "test": "aegir test", | ||
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox", | ||
"test:webkit": "bash -c '[ \"${CI}\" == \"true\" ] && playwright install-deps'; aegir test -t browser -- --browser webkit", | ||
"test:webkit": "aegir test -t browser -- --browser webkit", | ||
"test:node": "aegir test -t node --cov", | ||
@@ -94,11 +94,10 @@ "test:electron-main": "aegir test -t electron-main", | ||
"dependencies": { | ||
"@libp2p/interface-keys": "1.0.8-3dfc236e", | ||
"@libp2p/interfaces": "3.3.2-3dfc236e", | ||
"@libp2p/interface": "0.0.1-42c1c097", | ||
"@noble/ed25519": "^1.6.0", | ||
"@noble/secp256k1": "^1.5.4", | ||
"multiformats": "^11.0.2", | ||
"multiformats": "^12.0.1", | ||
"node-forge": "^1.1.0", | ||
"protons-runtime": "^5.0.0", | ||
"uint8arraylist": "^2.4.3", | ||
"uint8arrays": "^4.0.3" | ||
"uint8arrays": "^4.0.4" | ||
}, | ||
@@ -105,0 +104,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
@@ -3,0 +3,0 @@ const CIPHER_MODES = { |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import { concat as uint8ArrayConcat } from 'uint8arrays/concat' | ||
@@ -3,0 +3,0 @@ import { equals as uint8ArrayEquals } from 'uint8arrays/equals' |
import crypto from 'crypto' | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import type { ECDHKey, ECDHKeyPair } from './interface.js' | ||
@@ -4,0 +4,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import { base58btc } from 'multiformats/bases/base58' | ||
@@ -3,0 +3,0 @@ import { identity } from 'multiformats/hashes/identity' |
import 'node-forge/lib/asn1.js' | ||
import 'node-forge/lib/pbe.js' | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
// @ts-expect-error types are missing | ||
@@ -14,3 +14,3 @@ import forge from 'node-forge/lib/forge.js' | ||
import * as Secp256k1 from './secp256k1-class.js' | ||
import type { PrivateKey, PublicKey } from '@libp2p/interface-keys' | ||
import type { PrivateKey, PublicKey } from '@libp2p/interface/keys' | ||
@@ -17,0 +17,0 @@ export { keyStretcher } |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import { concat as uint8ArrayConcat } from 'uint8arrays/concat' | ||
@@ -3,0 +3,0 @@ import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string' |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string' | ||
@@ -3,0 +3,0 @@ import { toString as uint8ArrayToString } from 'uint8arrays/to-string' |
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import { sha256 } from 'multiformats/hashes/sha2' | ||
@@ -4,0 +4,0 @@ // @ts-expect-error types are missing |
import 'node-forge/lib/asn1.js' | ||
import 'node-forge/lib/rsa.js' | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
// @ts-expect-error types are missing | ||
@@ -5,0 +5,0 @@ import forge from 'node-forge/lib/forge.js' |
import crypto from 'crypto' | ||
import { promisify } from 'util' | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import randomBytes from '../random-bytes.js' | ||
@@ -5,0 +5,0 @@ import * as utils from './rsa-utils.js' |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import { sha256 } from 'multiformats/hashes/sha2' | ||
@@ -3,0 +3,0 @@ import { equals as uint8ArrayEquals } from 'uint8arrays/equals' |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import * as secp from '@noble/secp256k1' | ||
@@ -3,0 +3,0 @@ import { sha256 } from 'multiformats/hashes/sha2' |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
// @ts-expect-error types are missing | ||
@@ -3,0 +3,0 @@ import forgePbkdf2 from 'node-forge/lib/pbkdf2.js' |
@@ -1,2 +0,2 @@ | ||
import { CodeError } from '@libp2p/interfaces/errors' | ||
import { CodeError } from '@libp2p/interface/errors' | ||
import { utils } from '@noble/secp256k1' | ||
@@ -3,0 +3,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
482614
8
4746
+ Added@chainsafe/is-ip@2.0.2(transitive)
+ Added@chainsafe/netmask@2.0.0(transitive)
+ Added@leichtgewicht/ip-codec@2.0.5(transitive)
+ Added@libp2p/interface@0.0.1-42c1c097(transitive)
+ Added@multiformats/dns@1.0.6(transitive)
+ Added@multiformats/multiaddr@12.3.1(transitive)
+ Added@types/dns-packet@5.6.5(transitive)
+ Added@types/node@22.9.0(transitive)
+ Addedabortable-iterator@5.1.0(transitive)
+ Addedany-signal@4.1.1(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addeddns-packet@5.6.1(transitive)
+ Addedeventemitter3@5.0.1(transitive)
+ Addedget-iterator@2.0.1(transitive)
+ Addedhashlru@2.3.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedit-pushable@3.2.3(transitive)
+ Addedit-stream-types@2.0.2(transitive)
+ Addedp-defer@4.0.1(transitive)
+ Addedp-queue@8.0.1(transitive)
+ Addedp-timeout@6.1.3(transitive)
+ Addedprogress-events@1.0.1(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@libp2p/interfaces@3.3.2-3dfc236e
- Removed@libp2p/interface-keys@1.0.8-3dfc236e(transitive)
- Removed@libp2p/interfaces@3.3.2-3dfc236e(transitive)
- Removedmultiformats@11.0.2(transitive)
Updatedmultiformats@^12.0.1
Updateduint8arrays@^4.0.4