diff --git a/hyperswarm/peersocket.js b/hyperswarm/peersocket.js index e03be41c..261952b7 100644 --- a/hyperswarm/peersocket.js +++ b/hyperswarm/peersocket.js @@ -1,9 +1,8 @@ const EventEmitter = require('events') -const crypto = require('crypto') const createSwarm = require('@hyperswarm/network') const lpstream = require('length-prefixed-stream') const pump = require('pump') -const sodium = require('sodium') +const sodium = require('sodium-universal') const schemas = require('./peersocket-schemas') const {extractOrigin} = require('../../../lib/strings')