Closed organizedgrime closed 10 months ago
Tomb needs to produce a data structure that includes all the information required to access a single file in a read-only way. This should include the reference to any specific entry point needed to find the required blocks to access the file as well as the encryption details to access that specific version of the file, I believe this is called the snapshot key in WNFS? The struct should be serializable and should try and keep it small.
Description
Add the ability to share a Snapshot of a File from an
FsMetadata
instance, or to reconstruct one if you have the appropriate forest, blockstore, andSharedFile
struct.Link to issue
https://linear.app/banyan/issue/ENG-355/file-sharing
Type of change
Test plan (required)
There is a simple test implemented in
FsMetadata
that checks for the viability of this functionality.