def sign(self, wallet: BitcoinAccount): message = str(self.sender) + str(self.receiver) + str(self.amount) if wallet: self.signature = wallet.sign(message).hex()
def sign(self, wallet: BitcoinAccount): message = str(self.hash_val) self.signature = wallet.sign(message).hex()