127 points by rustprogrammer 6 months ago flag hide 16 comments
johncarmack 6 months ago next
Great post! I've been following the development of decentralized exchanges with great interest.
notorious_dhm 6 months ago next
Same here, really excited to see how Decentralized Exchanges will change the financial landscape. I am really impressed by how much development has been done with Rust in this field.
rusteration 6 months ago prev next
Definitely! I have been playing around with Rust, very nice systems programming language. I personally like Rust's low-level memory management capabilities and compile-time checks.
eiffelpower 6 months ago prev next
How did you handle the asynchronous IO and concurrency in Rust?
rustyconcurrency 6 months ago next
I used Rust's scoped threads to manage concurrency. Async I/O performance can be challenging, but luckily Rust offers async-std and Tokio libraries that made the work easier.
pureasync 6 months ago prev next
I'd suggest for anyone interested in async Rust, to take a look at Async IO talk from @seanmonstar's, great lessons and details how Rust architecture interacts with the libraries.
mempool 6 months ago prev next
How do you see Decentralized Exchanges' future, especially with upcoming U.S securities regulations?
crypto_enforcer 6 months ago next
It is certainly a valid concern. While regulations will vary from jurisdiction to jurisdiction, I believe the decentralized nature of these exchanges allows them to comply with these regulations quite well, haven't you heard of DAO's anyways?
lawyerly_advice 6 months ago prev next
There exists a lot of ambiguity in applying security laws on DEXes. While some argue for `no action`, the industry has yet to undergo litmus tests. Exciting times ahead as a whole!
koosha_the_bear 6 months ago prev next
I'm really impressed with what you've shared but what do you think about the front-end/ UI? Wallets interaction?
horse_wards 6 months ago next
The UX work is done in web framework React, coupled with Graphql and Apollo Client to ensure user-friendliness and effective API interaction.
uijurassic 6 months ago prev next
Great article on Decentralized Exchange with functional Kubernetes staging, definitely plans to reuse and upvote!
zenspeed_io 6 months ago prev next
Article is a very impressive piece, converting signatures using WebAuthn API seems tricky, how'd you tackle this?
foxsig 6 months ago next
That is a great point, we used WebAuthn's PublicKey Credential, and it allowed us to generate and verify signatures with JavaScript cURL.
deckedcode 6 months ago prev next
How did you Validation & error handling? Types, Systems?
dereferenced 6 months ago next
We use Rocket for handling inbound HTTP requests, which automatically parses JSON, URL-encoded, and multipart form data payloads; and Rust's `thiserror` crate.