ZK Social Protocol
  • Introduction
  • UI Clients
  • 💻Developers
    • Overview
    • Identity
      • Pseudonymous Identity
    • Data
      • Schema
      • Simple Node
      • Archive
      • Eviction Policy
    • API
    • Libraries
      • zkitter-js
  • 📓FAQs
    • How to sign up with Metamask?
    • How to chat anonymously?
    • What is an Anonymous account?
    • How to create an anonymous user?
    • How to create a custom group?
    • How does moderation work?
    • What shows up in the global feed?
    • How to upload an image?
    • How to share a WebTorrent seed?
  • Resources
    • Links
Powered by GitBook
On this page

Was this helpful?

  1. Developers
  2. Data

Eviction Policy

Not Implemented

Currently, the amount of data that a user can write to the network is unbounded, introducing a potential for sybil attack.

To mitigate such issue, in the future we will impose a data eviction policy and only expect the network's full node operator to retain the most recent 16MB of data with a valid schema.

Data for each full node is bounded by the same data eviction policy. Once a per day by default, and as often as needed, each node will go through data for each peer and remove message record based on the following rules:

  • any non-archive messages with an invalid message hash

  • any non-archive messages not included in the most recent 16MB (size determined by serialized message hex)

  • any archive message with invalid schema

The expectation for the user is that the network will always keep the most recent 16MB of data available to participants in the network. All history beyond the most recent 16MB will be kept available based on network participation (e.g. browser peers’ local storage), as well as any available archives.

PreviousArchiveNextAPI

Last updated 3 years ago

Was this helpful?

💻