Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTLC based atomic swaps: "wrapped REV" ERC20 token? #13

Open
dckc opened this issue Oct 26, 2020 · 9 comments
Open

HTLC based atomic swaps: "wrapped REV" ERC20 token? #13

dckc opened this issue Oct 26, 2020 · 9 comments

Comments

@dckc
Copy link
Contributor

dckc commented Oct 26, 2020

connecting REV to Uniswap seems like a good way to get some things moving

while looking for code to do HTLC / atomic swaps, I ran into another blockchain project using scala: https://github.com/ACINQ/eclair
bitcoin lightning thing "largest lightning node on mainnet"
https://github.com/ACINQ/eclair/tree/master/eclair-core/src/main/scala/fr/acinq/eclair/channel seems to be the relevant code, though that looks like a lot compared to...

https://github.com/chatch/hashed-timelock-contract-ethereum/blob/master/contracts/HashedTimelockERC20.sol

also ran into something way too interesting: proceedings of formal methods on blockchains https://fmbc.gitlab.io/2020/files/FMBC2020.pdf

rust https://crates.io/crates/blockchain_contracts

https://github.com/comit-network/RFCs/blob/master/RFC-009-SWAP-Basic-ERC20.adoc

https://tlu.tarilabs.com/protocols/atomic-swaps/AtomicSwaps.html

https://en.bitcoin.it/wiki/Hash_Time_Locked_Contracts

@dckc
Copy link
Contributor Author

dckc commented Oct 26, 2020

@dckc
Copy link
Contributor Author

dckc commented Oct 26, 2020

oh. that Agoric atomicSwap isn't cross-chain. it's within Agoric's ocap world.

@dimworm
Copy link

dimworm commented Dec 8, 2020

How about this way? https://tbtc.network/developers/tbtc-security-model/

@dckc
Copy link
Contributor Author

dckc commented Dec 8, 2020

Yes, pegging is an alternative to HTLC and tBTC does look like an interesting point in the pegging design space.

Compared to HTLC, it still seems to require a fairly large number of parties to play the signer role:

Shortly after launch, there should be a group of roughly 80 private sale KEEP purchasers and a few other trusted parties signing for tBTC. Very soon an opportunity will be announced for more individuals to participate by staking ETH to become a signer. -- https://tbtc.network/faq

@dimworm
Copy link

dimworm commented Dec 8, 2020

I know how HTLC works for swap. Alice pay Bob 10 REV on RChain, exchanging Bob's 10 WREV on Ethereum.
But how it works for Alice without Bob? if Alice wants to finish swap only with Rholang and Solidity smart contracts?

@dckc
Copy link
Contributor Author

dckc commented Dec 8, 2020

I am not aware of any technique for cross-chain swaps that doesn't involve parties on both sides that keep off-chain secrets.

@dckc
Copy link
Contributor Author

dckc commented Feb 6, 2021

https://gitcoin.co/grants/1454/wrapped-filecoin-wfil is an approach using a smart-contract on the ETH side and a DAO to approve the trusted parties on the filecoin side.

@dckc
Copy link
Contributor Author

dckc commented Mar 20, 2021

https://bridge.scrt.network/faq discusses an ETH<->SCRT bridge that's mostly a multi-sig contract on each side. "The bridge operators are very reputable staking operators: Figment, Staked, B-Harvest, Citadel.one and Enigma."

@dckc
Copy link
Contributor Author

dckc commented Jun 12, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants