Update app.py
Browse files
app.py
CHANGED
|
@@ -38,9 +38,10 @@ async def relay_txn(payload: dict):
|
|
| 38 |
# Deserialize the transaction sent from the UI
|
| 39 |
raw_tx = base58.b58decode(payload['txn'])
|
| 40 |
txn = Transaction.from_bytes(raw_tx)
|
| 41 |
-
txn.
|
|
|
|
| 42 |
partial_signed_bytes = bytes(txn)
|
| 43 |
-
encoded_txn = base58.b58encode(partial_signed_bytes).decode(
|
| 44 |
|
| 45 |
|
| 46 |
return {
|
|
|
|
| 38 |
# Deserialize the transaction sent from the UI
|
| 39 |
raw_tx = base58.b58decode(payload['txn'])
|
| 40 |
txn = Transaction.from_bytes(raw_tx)
|
| 41 |
+
txn.partial_sign([SERVER_KEY])
|
| 42 |
+
|
| 43 |
partial_signed_bytes = bytes(txn)
|
| 44 |
+
encoded_txn = base58.b58encode(partial_signed_bytes).decode("utf-8")
|
| 45 |
|
| 46 |
|
| 47 |
return {
|