use ePub not pub
This commit is contained in:
parent
717b570ec9
commit
3a5f3bd04d
1 changed files with 1 additions and 1 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue