diff --git a/src/DHTDataBase.ts b/src/DHTDataBase.ts index 24e0abc..43c036a 100644 --- a/src/DHTDataBase.ts +++ b/src/DHTDataBase.ts @@ -281,7 +281,11 @@ export default class DHTDataBase extends EventEmitter { if ( 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; let peerData = parsedData || {};