Documentation
    Preparing search index...

    Contract for a module that can be attached to a IPeerkitNode

    The node calls init() when registering the module, then start() to begin activity. stop() terminates activity gracefully on shutdown.

    Implements

    Index

    Constructors

    Accessors

    • get epochDuration(): number

      The epoch in milliseconds

      Blobs authored between now and the epoch threshold are recent. Blobs authored before the epoch threshold are historical.

      Returns number

    Methods

    • Run one pull round with every currently connected peer, in sequence.

      Returns Promise<void>

    • Request all authored blobs from the peer that this node does not yet hold.

      Requester side of the pull. See package docs for the full protocol sequence.

      Parameters

      • remoteAgentId: string

      Returns Promise<void>

    • Author a blob: store it under ownAgentId via the store (which owns hashing and the authoring clock) and return its hash.

      Parameters

      • blob: Blob

        The blob to store

      Returns Hash