Merge pull request #209 from shocknet/rpc-decrypt-hotfix

Rpc decrypt hotfix
This commit is contained in:
Daniel Lugo 2020-10-08 07:37:29 -04:00 committed by GitHub
commit a1e5c865d3
2 changed files with 1 additions and 2 deletions

View file

@ -43,7 +43,7 @@ const deepDecryptIfNeeded = async (value, publicKey) => {
if (user.is.pub === publicKey) {
sec = getMySecret()
} else {
sec = await SEA.secret(publicKey, user._.sea)
sec = await SEA.secret(await pubToEpub(publicKey), user._.sea)
}
const decrypted = SEA.decrypt(value, sec)

View file

@ -3010,7 +3010,6 @@ module.exports = async (
}) => {
const keys = path.split('.')
const { tryAndWait } = require('../services/gunDB/contact-api/utils')
console.log(keys)
return tryAndWait((gun, user) => {
// eslint-disable-next-line no-nested-ternary
let node = startFromUserGraph