pendulum-chain / pendulum-prototype

Pendulum prototype: Second Layer Network for Stellar and the DeFi ecosystem
MIT License
10 stars 6 forks source link

Proof of Concept Single Node Bridge #8

Closed TorstenStueber closed 3 years ago

TorstenStueber commented 3 years ago

Step 1

Deposit

Withdrawal

Step 2

Nice to have (step 2): actually support different user accounts instead of hard-coded accounts

The same but for Deposit:

gonzamontiel commented 3 years ago

A comment on this:

feeless transaction that can only be submitted by that node (the one bridge node)

Apparently we can submit feeless transactions from an off chain worker, called unsigned transactions. But we have to be very careful at validating this kind of transactions for avoiding DDOS and spamming the network (as stated here). Anyway, this won't truly affect the PoC.

andywer commented 3 years ago

we have to be very careful at validating this kind of transactions

It will be relatively easy to validate after the POC phase: The node will add some kind of signature to the transaction and such a transaction is valid if it contains a signature of an escrow account signer.

Small additional concern (after the POC): To enable non-relaying nodes to verify who is currently escrow co-signer, every change to the multi-sig setup of the escrow account will need to be synced to the Pendulum chain as well by the relayers. Those sync transactions need to be co-signed just as deposits & withdrawals. Non-relaying nodes can then verify the validity of relayer-co-signed transactions.

TorstenStueber commented 3 years ago

Closed. Completed as part of ticket #30 .