Beispiel #1
0
 def sign(self):
     return crypto.encode_base64(crypto.sign(self._hashable_representation()))
Beispiel #2
0
 def sign(self, device=None):
     if not self.id:
         self.id = self.get_uuid()
     self.signed_by = device or Device.get_own_device()
     self.signature = crypto.encode_base64(crypto.sign(self._hashable_representation()))