Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach UCANs to WNFS to prove authenticity of writes #7

Open
matheus23 opened this issue Jun 7, 2022 · 0 comments
Open

Attach UCANs to WNFS to prove authenticity of writes #7

matheus23 opened this issue Jun 7, 2022 · 0 comments

Comments

@matheus23
Copy link
Member

matheus23 commented Jun 7, 2022

Current state: In practice, WNFS writes are gated on write time by each peer in comparison to what they have verified up until that point.

  1. This makes it impossible for newly onboarding peers who didn't have a WNFS state in advance to verify authenticity of synced state, unless the peer they're syncing with can prove root access.
  2. It also makes it impossible to peers to "relay"/gossip changes they've heard about a particular WNFS to other peers when they don't have permission to change these parts of WNFS.

Goal: WNFS becomes an authenticated data structure in respect to some root DID that owns it.

This is difficult for two reasons:

  1. UCANs are meant to expire, so old writes would become invalid after some time. One key insight here has been that UCANs of newer writes can be used as attestation that already expired UCANs have been valid, if the time bounds of these UCANs are overlapping.
  2. We need to be careful to leak as little metadata as possible on the private file system side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant