3 ms·
In terms of access time, the standard would be O(1) for hashtables which would be my best guess at how to best represent an ip to domain mapping. Reading from o
by decentralised 7y ago
In terms of access time, the standard would be O(1) for hashtables which would be my best guess at how to best represent an ip to domain mapping. Reading from on chain data is done locally (if you have your own node) and is near instant, but for wider reach I think DNS over HTTP would be needed or wasm clients that can be run in a browser.
Here is a possible implementation in Ethereum:
https://medium.com/the-ethereum-name-service/ethdns-9d56298fa38a https://medium.com/the-ethereum-name-service/ethdns-9d56298f...