Comparing version 6.11.7 to 6.12.0
@@ -14,2 +14,3 @@ const DHT = require('dht-rpc') | ||
const { hash, createKeyPair } = require('./lib/crypto') | ||
const { decode } = require('hypercore-id-encoding') | ||
const RawStreamSet = require('./lib/raw-stream-set') | ||
@@ -60,3 +61,3 @@ const ConnectionPool = require('./lib/connection-pool') | ||
connect (remotePublicKey, opts) { | ||
return connect(this, remotePublicKey, opts) | ||
return connect(this, decode(remotePublicKey), opts) | ||
} | ||
@@ -63,0 +64,0 @@ |
{ | ||
"name": "hyperdht", | ||
"version": "6.11.7", | ||
"version": "6.12.0", | ||
"description": "The DHT powering Hyperswarm", | ||
@@ -34,2 +34,3 @@ "main": "index.js", | ||
"hypercore-crypto": "^3.3.0", | ||
"hypercore-id-encoding": "^1.2.0", | ||
"noise-curve-ed": "^2.0.0", | ||
@@ -36,0 +37,0 @@ "noise-handshake": "^3.0.0", |
@@ -171,2 +171,4 @@ # hyperdht | ||
The remote public key can be encoded as either a buffer, a hex string or a z-base32 string. | ||
Options include: | ||
@@ -173,0 +175,0 @@ |
139747
3886
327
18
+ Addedhypercore-id-encoding@^1.2.0
+ Addedhypercore-id-encoding@1.3.0(transitive)
+ Addedz32@1.1.0(transitive)