#decentralized-identity #dht #dns #mainline

pkarr

Public-Key Addressable Resource Records (Pkarr); publish and resolve DNS records over Mainline DHT

56 releases (stable)

new 3.7.2 May 21, 2025
3.6.0 Mar 12, 2025
2.3.1 Jan 12, 2025
2.2.1 Dec 17, 2024
0.3.0 Oct 25, 2023

#512 in Network programming

Download history 3458/week @ 2025-02-01 3749/week @ 2025-02-08 4361/week @ 2025-02-15 4053/week @ 2025-02-22 3353/week @ 2025-03-01 4218/week @ 2025-03-08 4409/week @ 2025-03-15 3844/week @ 2025-03-22 4250/week @ 2025-03-29 3680/week @ 2025-04-05 2350/week @ 2025-04-12 2093/week @ 2025-04-19 2962/week @ 2025-04-26 3221/week @ 2025-05-03 4110/week @ 2025-05-10 2833/week @ 2025-05-17

13,549 downloads per month
Used in 102 crates (14 directly)

MIT license

205KB
4K SLoC

Pkarr

Rust implementation of Pkarr for publishing and resolving DNS packets over Mainline DHT.

Documentation

Features

Runtime Support

  • Asynchronous by Default: Built on async/await for optimal performance
  • Blocking API Available: Use Client::as_blocking() for synchronous operations
  • Runtime Agnostic: Compatible with non-Tokio runtimes via async_compat

WebAssembly

  • Browser Environment: Designed for JavaScript/Wasm integration
  • Relay Communication: Uses browser's Fetch API for relay calls
  • Limitations:
    • Not compatible with WASI
    • Cannot use WASI bindings for direct DHT access

Dependencies

~2–35MB
~533K SLoC