We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8905cc commit e9af13aCopy full SHA for e9af13a
src/utils.ts
@@ -97,7 +97,7 @@ export async function verifySignedPayload(
97
if (!payload.identitySig || !publicKey.verify(generatedPayload, Buffer.from(payload.identitySig))) {
98
throw new Error("Static key doesn't match to peer that signed payload!");
99
}
100
- return remotePeer;
+ return PeerId.createFromPubKey(identityKey);
101
102
103
export function getHkdf(ck: bytes32, ikm: bytes): Hkdf {
0 commit comments