File tree Expand file tree Collapse file tree 7 files changed +8
-10
lines changed Expand file tree Collapse file tree 7 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 7575 "@noble/ciphers" : " ^0.4.0" ,
7676 "@noble/curves" : " ^1.1.0" ,
7777 "@noble/hashes" : " ^1.3.1" ,
78- "it-byte-stream" : " ^1.0.0" ,
7978 "it-length-prefixed" : " ^9.0.1" ,
8079 "it-length-prefixed-stream" : " ^1.0.0" ,
8180 "it-pair" : " ^2.0.6" ,
9796 "@libp2p/tcp" : " ^9.0.0" ,
9897 "@multiformats/multiaddr" : " ^12.1.0" ,
9998 "@types/sinon" : " ^17.0.1" ,
100- "aegir" : " ^41.1.10 " ,
99+ "aegir" : " ^42.2.0 " ,
101100 "benchmark" : " ^2.1.4" ,
102101 "execa" : " ^8.0.1" ,
103102 "go-libp2p" : " ^1.0.3" ,
104103 "iso-random-stream" : " ^2.0.2" ,
104+ "it-byte-stream" : " ^1.0.0" ,
105105 "libp2p" : " ^1.0.8" ,
106106 "mkdirp" : " ^3.0.0" ,
107107 "p-defer" : " ^4.0.0" ,
Original file line number Diff line number Diff line change 11import { createEd25519PeerId , createFromJSON } from '@libp2p/peer-id-factory'
2- import type { PeerId } from '@libp2p/interface/peer-id '
2+ import type { PeerId } from '@libp2p/interface'
33
44// ed25519 keys
55const peers = [ {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
77import { noise } from '../src/index.js'
88import { Noise } from '../src/noise.js'
99import { createPeerIdsFromFixtures } from './fixtures/peer.js'
10- import type { Metrics } from '@libp2p/interface/metrics '
10+ import type { Metrics } from '@libp2p/interface'
1111import type { Uint8ArrayList } from 'uint8arraylist'
1212
1313function createCounterSpy ( ) : ReturnType < typeof sinon . spy > {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { path as p2pd } from 'go-libp2p'
1313import { createLibp2p , type Libp2pOptions } from 'libp2p'
1414import pDefer from 'p-defer'
1515import { noise } from '../src/index.js'
16- import type { PeerId } from '@libp2p/interface/peer-id '
16+ import type { PeerId } from '@libp2p/interface'
1717import type { SpawnOptions , Daemon , DaemonFactory } from '@libp2p/interop'
1818
1919async function createGoPeer ( options : SpawnOptions ) : Promise < Daemon > {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
1111import { pureJsCrypto } from '../src/crypto/js.js'
1212import { Noise } from '../src/noise.js'
1313import { createPeerIdsFromFixtures } from './fixtures/peer.js'
14- import type { PeerId } from '@libp2p/interface/peer-id '
14+ import type { PeerId } from '@libp2p/interface'
1515import type { Uint8ArrayList } from 'uint8arraylist'
1616
1717describe ( 'Noise' , ( ) => {
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ import { defaultCrypto } from '../src/crypto/index.js'
1010import { wrapCrypto } from '../src/crypto.js'
1111import { performHandshakeInitiator , performHandshakeResponder } from '../src/performHandshake.js'
1212import { createPeerIdsFromFixtures } from './fixtures/peer.js'
13- import type { PrivateKey } from '@libp2p/interface'
14- import type { PeerId } from '@libp2p/interface/peer-id'
13+ import type { PrivateKey , PeerId } from '@libp2p/interface'
1514
1615describe ( 'performHandshake' , ( ) => {
1716 let peerA : PeerId , peerB : PeerId , fakePeer : PeerId
Original file line number Diff line number Diff line change 11import { keys } from '@libp2p/crypto'
22import type { KeyPair } from '../src/types.js'
3- import type { PrivateKey } from '@libp2p/interface/keys'
4- import type { PeerId } from '@libp2p/interface/peer-id'
3+ import type { PrivateKey , PeerId } from '@libp2p/interface'
54
65export async function generateEd25519Keys ( ) : Promise < PrivateKey > {
76 return keys . generateKeyPair ( 'Ed25519' , 32 )
You can’t perform that action at this time.
0 commit comments