Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Tracker): Added Wallet Address For LC Validation #764

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mridul-Web3
Copy link

No description provided.

@vbhattaccmu
Copy link
Contributor

Hello,
Currently wallet address is stored as a key within DHT keyspaces of the Light Client, hence we wont need to track them separately through config. You can use the storage key to store any data you need.

@Mridul-Web3
Copy link
Author

@vbhattaccmu
Thank you for the clarification regarding wallet addresses being stored as keys in the DHT. I’d appreciate some guidance to implement this effectively:

  1. Could you provide an example of how to store and retrieve data (e.g., wallet addresses) using the DHT APIs?
  2. Are there best practices for key naming to avoid collisions, or should we follow any existing conventions?
  3. Any considerations for querying DHT data efficiently across nodes, especially for my tracker dashboard?

If there's documentation or code references for the DHT APIs in the Light Client, sharing those would be really helpful.

@vbhattaccmu
Copy link
Contributor

vbhattaccmu commented Dec 11, 2024

@vbhattaccmu Thank you for the clarification regarding wallet addresses being stored as keys in the DHT. I’d appreciate some guidance to implement this effectively:

  1. Could you provide an example of how to store and retrieve data (e.g., wallet addresses) using the DHT APIs?
  2. Are there best practices for key naming to avoid collisions, or should we follow any existing conventions?
  3. Any considerations for querying DHT data efficiently across nodes, especially for my tracker dashboard?

If there's documentation or code references for the DHT APIs in the Light Client, sharing those would be really helpful.

currently there is an avail-address mapped to an LC and its peer id and they are unique (guaranteed) for an LC [defined by seed on config]. Get and Puts are automatically handled by LC itself so there is no need to manage it separately.

When an LC is spun up, the address is generated automatically and is visible in logs. You can query the peer id by the diagnostics api , /local/info. In case you need to query avail address in some form and use it on your end, you can raise an issue on our repository and we will look into it.

As far as a tracker of any sort is concerned, the present set of V2 and diagnostic APIs can serve all the purposes, I dont see the need to query avail-address, you can use peer id instead. please let me know if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants