code: def Sign(message, private_key):
          
  
          hash = hashlib.sha256(binascii.unhexlify(message)).hexdigest()
  
          v, r, s = bitcoin.ecdsa_raw_sign(hash, private_key)
  
          rb = bytearray(r.to_bytes(32, 'big'))
          sb = bytearray(s.to_bytes(32, 'big'))
  
          sig = rb + sb
  
          return sig
docs: Sign the message with the given private key.
  
          Args:
              message (str): message to be signed
              private_key (str): 32 byte key as a double digit hex string (e.g. having a length of 64)
          Returns:
              bytearray: the signature of the message.