def set_server_public_key(self, B):
    if (isinstance(B, bytearray) or isinstance(B, bytes)):
        self.B = int.from_bytes(B, 'big')
    else:
        self.B = B
def set_server_public_key(self, B):
    if (isinstance(B, bytearray) or isinstance(B, bytes)):
        self.B = int.from_bytes(B, 'big')
    else:
        self.B = B