Closed hazae41 closed 2 years ago
How did you get a manifest?
In most cases you are given the orbitdb address to begin with, then you have to fetch the manifest afterwards
Yes, so why do we need to add the path in the address if only the hash is needed?
Are you talking about the first-database
section in the /orbitdb/Qmd8TmZrWASypEp4Er9tgWP4kCNQnW4ncSnvjvyHQ3EVSU/first-database
address?
Yes
Good question @hazae41 - the database name is required because it's used in the algorithm that generates that very hash. The (very crude) formula for the manifest hash is:
Database Name + ACL + database type.
So it allows you to have multiple databases of the same type, using the same ACL (typically maps to your OrbitDB instance or IPFS node).
However, we should go into more detail about this so I'm going to transfer this issue to the field manual repo for more writing.
Or I didn't understand how it works?