work on mail plugin inbox

This commit is contained in:
Kevin Froman 2018-07-17 02:18:17 -05:00
parent f432d9193e
commit 7390945ebf
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
3 changed files with 22 additions and 10 deletions

View file

@ -718,7 +718,7 @@ class Core:
# sign before encrypt, as unauthenticated crypto should not be a problem here
if sign:
signature = self._crypto.edSign(jsonMeta.encode() + data, key=self._crypto.privKey, encodeResult=True)
signer = self._crypto.pubKeyHashID()
signer = self._crypto.pubKey
if len(jsonMeta) > 1000:
raise onionrexceptions.InvalidMetadata('meta in json encoded form must not exceed 1000 bytes')