Spaces:
Runtime error
Runtime error
Update chatchain.py
Browse files- chatchain.py +3 -1
chatchain.py
CHANGED
@@ -236,7 +236,7 @@ class MyChainSend:
|
|
236 |
'recipient': recipient,
|
237 |
'message': message,
|
238 |
}
|
239 |
-
transaction = crypt.
|
240 |
self.pending_transactions.append(transaction)
|
241 |
def proof_of_work(self, previous_proof):
|
242 |
new_proof = 1
|
@@ -437,6 +437,8 @@ class MyChainRec:
|
|
437 |
'recipient': recipient,
|
438 |
'message': message,
|
439 |
}
|
|
|
|
|
440 |
self.pending_transactions.append(transaction)
|
441 |
def proof_of_work(self, previous_proof):
|
442 |
new_proof = 1
|
|
|
236 |
'recipient': recipient,
|
237 |
'message': message,
|
238 |
}
|
239 |
+
transaction = crypt.encrypt_trans(transaction,pub_key)
|
240 |
self.pending_transactions.append(transaction)
|
241 |
def proof_of_work(self, previous_proof):
|
242 |
new_proof = 1
|
|
|
437 |
'recipient': recipient,
|
438 |
'message': message,
|
439 |
}
|
440 |
+
transaction = crypt.encrypt_trans(transaction,pub_key)
|
441 |
+
|
442 |
self.pending_transactions.append(transaction)
|
443 |
def proof_of_work(self, previous_proof):
|
444 |
new_proof = 1
|