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

    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>

    • Hash the blob, store it under ownAgentId, and return the hash.

      Parameters

      • blob: Blob

        The blob to store

      Returns Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>