code: def sign(self, msg):
          
          signature = SHA256.new()
          signature.update(self._mackey1)
          signature.update(msg)
          signature.update(self._mackey2)
          return signature.digest()
docs: sign a message