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: Basic record key/prefix validator and basic ipns publisher/resolver #88

Merged
merged 31 commits into from
Aug 24, 2023

Conversation

dariusc93
Copy link
Owner

@dariusc93 dariusc93 commented Jul 17, 2023

In the current implementation, there is no way to properly obtain dht records from the IPFS network, or more specifically IPNS record, as well as implementing a way to validate prefix and possibly records.

This PR introduce a few things:

  1. A basic way of validating the record key when obtaining and possibly setting the dht record. At this time, the default implementation would attempt to validate ipns prefix and generate a possible Key for that that would work across DHT. This does not implement/validate pk record prefix. Custom implementation can eventually validate their own record prefix.
  2. rust-ipns, which will be used to create, decode and verify ipns records (WIP)
  3. ipns resolver over DHT (WIP)
  4. ipns publisher over DHT (WIP)

Related to #1

Note:

  1. Ipns resolver and publisher are behind a experimental feature at this time, but will be removed once consider stabled enough
  2. This PR wont fetch the records from the datastore and store it into kad by default at this time, but this will change in the future
  3. If used, it is suggested to set datastore manually to use sled, memory, or your own data store implementation

@dariusc93 dariusc93 mentioned this pull request Aug 13, 2023
5 tasks
@dariusc93 dariusc93 changed the title feat: Basic record key/prefix validator feat: Basic record key/prefix validator and ipns resolver Aug 14, 2023
@dariusc93 dariusc93 changed the title feat: Basic record key/prefix validator and ipns resolver feat: Basic record key/prefix validator and basic ipns publisher/resolver Aug 21, 2023
@dariusc93 dariusc93 marked this pull request as ready for review August 24, 2023 06:04
@dariusc93 dariusc93 merged commit 598ebd8 into libp2p-next Aug 24, 2023
@dariusc93 dariusc93 deleted the record-validator branch August 24, 2023 06:40
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.

1 participant