It is my understanding that the format of an IPFS hash has many headers in it that define stuff like:
- which version of the protocol to use
- which hash algorithm to use
- which base to use
- other headers for lengths and other stuff
I understand that a IPNS hash is pretty similar
My question is:
Is it theoretically possible to generate a IPNS hash from a universally unique identifier such as an email?
I suspect that in the existing protocol for an IPNS id, there is some code which creates a random hash. Could we replace that functionality with creating the hash from an email instead?
i.e. is it theoretically possible to pass a universally unique identifier such as an email address, to a function which generates a universally unique IPNS id? If we run the function a second time with the same email it produces the same IPNS - is this possible?
If it is possible does anyone know of any existing code that does that? I prefer Java code but any code is cool.
If this is possible it opens up a lot of possibilities.
Thank you in advance for any help anyone can give.