Bitcoin Forum
June 27, 2022, 06:22:06 AM *
News: Latest Bitcoin Core release: 23.0 [Torrent]
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Project Development / Re: The Bitcoin DEX on: February 16, 2022, 08:53:30 AM
if we can use random email, what does the email feature do? isn't it better to use a random ID with a password?
The point of using your email is that basically everyone has one and it is easy for them to remember. Of course, you can use a random ID, but that's hard to remember.

2  Bitcoin / Development & Technical Discussion / Re: Is there any useful place where OP_CODESEPARATOR is used? on: February 12, 2022, 11:03:31 AM
I never could figure out where would OP_CODESEPARATOR be useful and some very old comments from early days suggest it may be a byproduct of a bad decision (eg. scripts were concatenated then executed at first).
While going through Taproot this OP code makes even less sense in Tapscripts and yet it is there. So I was wondering if I'm missing something and whether there is any good script examples I could look at where OP_CODESEPARATOR solves a problem that can't be solved in any other way.

Here is an example how you could use it in an interesting way:
3  Bitcoin / Project Development / Re: The Bitcoin DEX on: January 31, 2022, 10:11:59 PM
Instead of using ethereum peg maybe you should consider using some Bitcoin Sidechains that are also using stable coins.
We're developing the contract in Solidity. That makes it compatible with Ethereum, BSC, but also RSK.

So you are saying there is no middle man when using your Bitcoin dex for atomic swaps?
You are right. No third party is required to execute a swap. The client is only doing the client-side validation of the token protocol for you and compiles your token transactions. In theory, you could do that in e.g. Electrum, too. If you're curious about the details, here's a writeup on swaps.
4  Bitcoin / Project Development / Re: The Bitcoin DEX on: January 27, 2022, 09:35:13 PM
I don't like that you are using some new stablecoin connected with USDT token on ethereum blockchain, and I don't understand how this exactly work.
Here's a detailed writeup of the trustless 2-way peg. For now, it is just a trusted peg containing $480 USDt inital "playmoney", or "bug bounty" if you want. We want to replace it ASAP with the trustless peg.

Can you please explain to me how this exchange can be called decentralized when it's available on only as web version and it's operated by centralized server?
You can download and run the client just by clicking on the html file. The server is not required to swap tokens. In theory, I could paste an order here into this thread and then anyone could take it. The purpose of the servers is only to bundle liquidity.

5  Bitcoin / Project Development / Re: The Bitcoin DEX on: January 27, 2022, 09:27:21 PM
Thanks a lot for your feedback because it was motivating.

Let me know if you're ready for someone to try do it for real (not with testnet).
There is already a "reckless" mainnet version and there is already a $5 offer which you can buy. It's even discounted as it wasn't changed since bitcoin was at $42000. You are very welcome to execute the first real world order on our DEX! :-)

Me = a very average user, but very happy to try stuff like this with a holding hand. I am increasingly getting requests for a fair amount of stablecoin payments I prefer to swap to Bitcoin without going through an exchange though (the problem is they're all on BSC).

This inspired me to work out the details of the 2-way peg protocol. Next step is to implement the peg-out in Solidity. Then you can trade every asset on every EVM-like platform trustlessly against BTC. This includes all assets on Binance Smart Chain, too.

6  Bitcoin / Project Development / Re: The Bitcoin DEX on: January 23, 2022, 11:22:07 PM
Here is a more technical writeup of this project. Maybe it would have been better to start the thread with this summary instead of dumping the prototype on you without much background info  Grin
7  Bitcoin / Project Development / Re: The Bitcoin DEX on: January 22, 2022, 03:55:17 PM
Just leave a password text field which makes it look like a brain wallet.
Using some email as salt is important for security...

Also, how can I verify these aren't sent to a server?
You can monitor all requests in the network tab of the developer tools in your browser.

Is the wallet open-source?
Yes, you can find the source code on Github. You can run it locally simply by downloading the client and clicking on the index.html.
8  Bitcoin / Project Development / Re: The Bitcoin DEX on: January 22, 2022, 03:08:25 PM
@BlackHatCoiner and @bitmover,  I updated the signup page to be more clear about the email being used as salt.

Do you think this is better, or do you consider warpwallet with email+pw a bad idea in general?

I personally like the idea because users are very familiar with such logins.
9  Bitcoin / Project Development / Re: The Bitcoin DEX on: January 21, 2022, 10:44:10 PM
It asks me for my email address.

You're right, it looks like we are communicating badly here. Your email is used only locally on your machine as salt for generating keys with a WarpWallet. It is basically just a random string that is unique per user which guarantees attackers using bruteforce have to target each user separately. We use the email address because it is a salt that is easy to remember and makes the login feel familiar to regular web services.

Of course, you can use the DEX with any random email address if you want.

10  Bitcoin / Project Development / The Bitcoin DEX on: January 21, 2022, 05:56:41 PM
Today we are releasing an alpha version of Bitcoin DEX - a decentralised bitcoin exchange based on non-interactive atomic swaps. It allows you to swap bitcoins for stablecoins with a single bitcoin transaction, and without having to know your counterparty upfront. You can find the FAQ here. Here are some screenshots.
Your feedback is very welcome!

PS: you can use this faucet to receive some testnet Bitcoins to buy testnet Dollars on the DEX. Or you can receive testnet dollars by posting your address in this thread. Or you can receive testnet dollars in our Telegram group.

Edit: Here's a writeup of the protocol.
11  Bitcoin / Development & Technical Discussion / Implementing OP_MUL with OP_ADD on: February 06, 2020, 10:58:56 AM
For fun I implemented OP_MUL using OP_ADD. You can find the code here on Github.

Feedback very appreciated!

And I have a question: do you guys know any good source for advanced bitcoin scripts? Is there something like a library for scripts?
12  Alternate cryptocurrencies / Altcoin Discussion / Bitcoin Nano Network: Stateless Full Nodes on: February 01, 2020, 07:44:08 PM
I have been working on a protocol for stateless nodes. It is a simplified version of Utreexo. It does not require dedicated bridge nodes - only regular nodes serving regular blocks. Furthermore, nano nodes can serve each other. The protocol works on top of today's bitcoin. No consensus changes are required. All data structures emerge from the existing blockchain structure.

If there is at least one honest node available, the protocol provides full node security by downloading just about 150 MB.

Here is a straw-man proposal demonstrating the basic idea.

The detailed description can be found here.

Feedback is very welcome. Thanks for taking your time!
13  Bitcoin / Project Development / Re: esplora.js - A flexible backend for browser-based Bitcoin clients on: January 13, 2020, 12:15:24 AM
Cool project! This is something I would totally use if I worked on a project that interacts with Bitcoin's blockchain.

How do you install it? Is it on npm or am I supposed to just copy the file? Also, since this seems to be a wrapper for an API, what are the rate limits of the API?

Thanks! Yes, simply copy the file into your project. It has no dependencies and is fully self-contained.

Indeed, it is a wrapper for Blockstream's Esplora API. I am not sure about their rate limits, though. Will try to find it out.

Also, publishing it on npm is a good idea!
14  Bitcoin / Project Development / esplora.js - A flexible backend for browser-based Bitcoin clients on: January 12, 2020, 02:18:26 AM
A flexible backend for browser-based Bitcoin clients. The in-official JavaScript library for Blockstream's Esplora API.
Find the code and a demo on Github

Feedback highly appreciated!
15  Bitcoin / Project Development / Coins: A trustless sidechain protocol on: January 11, 2020, 11:12:05 PM
Hi all,

I've been working on a sidechain protocol with no trusted third party. You can find the whitepaper here.

Abstract. Coins is a Bitcoin extension designed for payments at scale.  We propose an efficient solution to the double-spending problem using a bitcoin-backed proof-of-stake.  Validators vote on sidechain blocks with one-time  signatures,  forming  a record that cannot be changed without destroying their collateral.  Every user can become a validator by locking bitcoins.  One-time signatures guarantee that validators lose their  stake  for  publishing  conflicting  histories.   Checkpoints  can  be  additionally secured with a bitcoin-backed proof-of-burn.  Assuming a rational majority of validators, the sidechain provides safety and liveness.  The sidechain’s footprint within bitcoin’s blockchain is minimal.  Spawning multiple, independent instances scales horizontally.

Your Feedback is highly appreciated!

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!