Closed vyzo closed 7 years ago
This is looking good. I guess when we have a large volume of node registrations with manifests we can do the async entity lookup, but for now it seems fine to hold the lock until it completes.
Not really related to this mcdir PR, but does the node do its own manifest verification when it fetches a remote manifest? I guess that would require the node to have its own ManifestStore and do the entity lookups, etc...
Anyway, this looks good to me :)
No, nodes don't do their own verification -- mainly because I don't want to have a dependency on blockstack for running mcnode. So they trust the directory, and the end user client can do its own verification if need be.
Not: the lock is not held while the slow part is running, it is released temporarily while the key lookup is in progress; the rest should run fast enough to not be an issue.
Adds manifest support in mcdir; closes #71
/mediachain/dir/listmf
protocol for looking up manifests by entity id/dir/listmf/{entity}
api in mcnode