banyancomputer / banyan-cli

Banyan's client, BanyanFS+CAR encrypted filesystem packer and metadata handler.
https://banyan.computer/
MIT License
25 stars 2 forks source link

Vera/ENG-355 File Sharing #291

Closed organizedgrime closed 10 months ago

organizedgrime commented 11 months ago

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, and SharedFile 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.

linear[bot] commented 11 months ago
ENG-355 File Sharing

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.