pubky / pkarr

Public Key Addressable Resource Records (sovereign TLDs)
https://app.pkarr.org
MIT License
153 stars 17 forks source link

resolving gives @ #35

Closed jdutchak closed 10 months ago

jdutchak commented 10 months ago

i am testing this and when i publish foo / bar and resolve it - how come i only see @ for name and nothing for value?

Nuhvi commented 10 months ago

Ah, I suppose you are publishing from the web app, I must have a bug in the frontend logic there, just too busy with the Rust implementation to hunt it down.

But this is the second complaint, so I will prioritize it. Thanks @jdutchak

Nuhvi commented 10 months ago

In the meantime, the CLI works well if you want to test Pkarr itself not the demo web app necessarily.

jdutchak commented 10 months ago

got it working on web - question if i add a record say foo / bar then resolve it then add foo / baz

i noticed that upon resolving sometimes i get foo/bar and sometime i get foo/baz is this the expected behavior?

Nuhvi commented 10 months ago

Yes and no.

Yes because the relay is acting as a transparent relay, and it resolves optimistically (it returns the first result it sees) to be fast instead of thorough.

No because actual applications should be keeping cached versions of the records for long time, thus when they see an older version, they don't immediately return it to the user, and instead wait till they see a more recent version or exhaust the DHT traversal with no new versions, and then return the one they already saw.

So... expect the DHT to have multiple versions on different nodes, and don't expect strong consistency, design your app to tolerate that.

jdutchak commented 10 months ago

ty for the info