use ePub not pub

This commit is contained in:
Daniel Lugo 2020-10-08 07:36:10 -04:00
parent 717b570ec9
commit 3a5f3bd04d

View file

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