Merge pull request #209 from shocknet/rpc-decrypt-hotfix
Rpc decrypt hotfix
This commit is contained in:
commit
a1e5c865d3
2 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue