decrypt with correct secret

This commit is contained in:
Daniel Lugo 2020-01-29 19:11:50 -04:00
parent 7306a52f8e
commit f96114b7fc

View file

@ -139,8 +139,9 @@ const onIncoming = cb => {
return return
} }
const ourSecret = await SEA.secret(await Utils.pubToEpub(pub), user._.sea) const ourSecret = await SEA.secret(await Utils.pubToEpub(pub), user._.sea)
const mySecret = await Utils.mySecret()
const feed = await SEA.decrypt(encFeed, ourSecret) const feed = await SEA.decrypt(encFeed, mySecret)
if (pubFeedPairsWithIncomingListeners.add(pub + '--' + feed)) { if (pubFeedPairsWithIncomingListeners.add(pub + '--' + feed)) {
require('../../Mediator') require('../../Mediator')