reticulum-js
    Preparing search index...

    Class IdentityCache

    The caches owned by one TransportCore instance. Constructed with the legacy static maps by default (see the module description); pass explicit maps for hard isolation.

    Index
    • Parameters

      • Optionaloptions: {
            instanceToken?: object;
            knownDestinations?: Map<string, KnownDestination>;
            knownRatchets?: Map<string, { ratchet: Uint8Array; received: number }>;
            receipts?: Map<string, PacketReceipt>;
        } = {}
        • OptionalinstanceToken?: object

          Identity token of the module copy that created this cache; defaults to CORE_INSTANCE_TOKEN of this copy.

        • OptionalknownDestinations?: Map<string, KnownDestination>

          Defaults to a fresh map.

        • OptionalknownRatchets?: Map<string, { ratchet: Uint8Array; received: number }>

          Defaults to a fresh map.

        • Optionalreceipts?: Map<string, PacketReceipt>

          Defaults to a fresh map.

      Returns IdentityCache

    instanceToken: object

    Module-instance identity of the copy that built this cache. Used by warnIfFragmented to detect a fragmented install.

    knownDestinations: Map<string, KnownDestination>

    Learned peer identities keyed by hex destination hash.

    knownRatchets: Map<string, { ratchet: Uint8Array; received: number }>

    Newest announced ratchet public key per destination, keyed by hex.

    receipts: Map<string, PacketReceipt>

    Outstanding proof receipts keyed by hex truncated packet hash.