diff --git a/.gitignore b/.gitignore index e4c5b0e..8545c7e 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ test/test-data/go-ipfs-repo/LOG.old # while testing npm5 package-lock.json +yarn.lock \ No newline at end of file diff --git a/package.json b/package.json index b1fedba..f22d2e4 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "libp2p-crypto": "~0.10.0", "multihashing-async": "~0.4.6", "peer-id": "~0.10.0", - "protocol-buffers": "^3.2.1", + "protons": "^1.0.0", "pull-defer": "^0.2.2", "pull-handshake": "^1.1.4", "pull-length-prefixed": "^1.3.0", @@ -72,4 +72,4 @@ "Richard Littauer ", "greenkeeperio-bot " ] -} \ No newline at end of file +} diff --git a/src/handshake/crypto.js b/src/handshake/crypto.js index 387b271..9920fae 100644 --- a/src/handshake/crypto.js +++ b/src/handshake/crypto.js @@ -1,6 +1,6 @@ 'use strict' -const protobuf = require('protocol-buffers') +const protons = require('protons') const PeerId = require('peer-id') const crypto = require('libp2p-crypto') const parallel = require('async/parallel') @@ -9,7 +9,7 @@ const debug = require('debug') const log = debug('libp2p:secio') log.error = debug('libp2p:secio:error') -const pbm = protobuf(require('./secio.proto')) +const pbm = protons(require('./secio.proto')) const support = require('../support')