earthstar-project / willowprotocol.org

The Willow Protocol website.
https://willowprotocol.org
23 stars 2 forks source link

Specify that peers should not transfer payload data unless we have the full payload. #75

Closed sgwilym closed 2 months ago

sgwilym commented 6 months ago

As payloads are not incrementally verified, it's possible for peers to send the malformed data smaller than the expected payload size undetected, whether this is intentional or not.

When this happens, we don't want this bad payload data to propagate to other peers, who could then send it to other peers, etc.

Therefore we should specify that payload data should only be sent to other peers when we have the full payload.

AljoschaMeyer commented 6 months ago

Or we might make the protocol more expressive. Tbd.

AljoschaMeyer commented 2 months ago

Payload transformations now give us a mechanism for verified streaming.