https://github.com/ChainSafe/dht-tester
We want to demonstrate the current state of the double hashing implementation at IPFS camp 2022.
Features to demonstrate
- providing a cid to the dht
- show that the provider records are stored encrypted
- looking up a cid in the dht
- show that lookup requests don’t include the cid directly
- looking up a prefix in the dht
- getting multiple matches for the prefix
- show that only the provider records for which I know the cid can be read
Demo sequence
what we have now
- start a new DHT of 40 peers
- provide a cid to the network
- show that the provider record was allocated to 20 peers
- the dht server node mentioned with the
./cmd -cids <cid> --host-index <host-index>
is the content provider
- lookup this given cid
- show that it was stored encrypted on these peers
- show that the provider record can be decrypted and points to the dht server node that provided it