*Ensure we are parsing the public key in hex format
This commit is contained in:
parent
15b088f481
commit
a1d826e376
|
@ -281,7 +281,11 @@ export default class DHTDataBase extends EventEmitter {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
signature &&
|
signature &&
|
||||||
crypto.verify(b4a.from(`${timestamp}${data}`), signature, b4a.from(id))
|
crypto.verify(
|
||||||
|
b4a.from(`${timestamp}${data}`),
|
||||||
|
signature,
|
||||||
|
b4a.from(id, "hex")
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
const parsedData = data ? orderedJSON.parse(data) : null;
|
const parsedData = data ? orderedJSON.parse(data) : null;
|
||||||
let peerData = parsedData || {};
|
let peerData = parsedData || {};
|
||||||
|
|
Loading…
Reference in New Issue