pubky / pkarr

Public Key Addressable Resource Records (sovereign TLDs)
https://app.pkarr.org
MIT License
187 stars 20 forks source link

HTTP client crate #13

Closed Nuhvi closed 1 year ago

Nuhvi commented 1 year ago

As a part of the rewriting in Rust effort, we need a crate that uses an HTTP server as a proxy to the DHT, This allows us to use the JavaScript module bittorrent-dht while examining the best way to go on about writing a DHT client in Rust that is at least as good and reliable.

This client isn't a waste of time either, Eventually, after porting the DHT and server to Rust, we will still need this client to use in environments that do not offer UDP sockets at all, like Replit or all browsers.

Tasks: [x] - Update and simplify the server to be a transparent proxy. [x] - Packets encoding in Rust (a document is a struct containing the collection of records). [x] - Signing and verifying packets [x] - Simple stateless HTTP client packets [ ] - Get feedback from interested testers (including generating bindings for their languages)