working on issue for hashid being bytes on some versions
parent
9f4aef7465
commit
3cba6b30c7
|
@ -620,6 +620,11 @@ class Core:
|
|||
if sign:
|
||||
signature = self._crypto.edSign(data, self._crypto.privKey, encodeResult=True)
|
||||
ourID = self._crypto.pubKeyHashID()
|
||||
# Convert from bytes on some py versions?
|
||||
try:
|
||||
ourID = ourID.decode()
|
||||
except AttributeError:
|
||||
pass
|
||||
metadata['id'] = ourID
|
||||
metadata['sig'] = signature
|
||||
metadata = json.dumps(metadata)
|
||||
|
|
Loading…
Reference in New Issue