예제 #1
0
 def sign(self, wallet: BitcoinAccount):
     message = str(self.sender) + str(self.receiver) + str(self.amount)
     if wallet:
         self.signature = wallet.sign(message).hex()
예제 #2
0
 def sign(self, wallet: BitcoinAccount):
     message = str(self.hash_val)
     self.signature = wallet.sign(message).hex()