Optimised announces to 151 bytes

This commit is contained in:
Mark Qvist 2021-05-20 16:56:08 +02:00
parent 9c995b33dd
commit db527b6759
4 changed files with 10 additions and 12 deletions

View file

@ -156,10 +156,7 @@ class Destination:
signature = self.identity.sign(signed_data)
# TODO: Check if this could be optimised by only
# carrying the hash in the destination field, not
# also redundantly inside the signed blob as here
announce_data = self.hash+self.identity.get_public_key()+random_hash+signature
announce_data = self.identity.get_public_key()+random_hash+signature
if app_data != None:
announce_data += app_data