Skip to content

feat: expose DHT lifecycle and lookup APIs - #302

Merged
adust09 merged 1 commit into
adust09:mainfrom
Yu-da-1:feat/285-dht-public-api
Sep 26, 2026
Merged

adust09 merged 1 commit into
adust09:mainfrom
Yu-da-1:feat/285-dht-public-api

Conversation

@Yu-da-1

@Yu-da-1 Yu-da-1 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Hi, this is my first time writing code in Haskell, so please let me know if there are any issues. Thank you for the opportunity to contribute to this project!

Summary

Adds high-level getValue and findPeer wrappers over the existing iterative DHT lookups, and exposes DHT lifecycle and operations through the LibP2P public facade. No lookup or wire behavior is changed.

Spec reference

No protocol behavior change.

Testing

  • Added API tests for retrieving a record stored through putValue
  • Added API coverage for finding the closest known peers
  • Built the complete test suite successfully
  • Ran 1271 examples with 0 failures
  • Manually verified that a DHT workflow type-checks using only import LibP2P

Closes #285

@github-actions github-actions Bot added the enhancement New feature or request label Sep 22, 2026

@adust09 adust09 left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for your effor!

No blocking findings. The new wrappers remain thin aliases over the existing iterative lookups, and the facade exports are sufficient for a DHT lifecycle/workflow using only import LibP2P.

Approved

@adust09
adust09 merged commit c6fff19 into adust09:main Sep 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dht: expose getValue, findPeer, and node lifecycle on the public API

2 participants