reticulum-js
    Preparing search index...

    Function validatePeeringKey

    • Validates a peering key between two propagation nodes (§5.8.4).

      The peering_id is receiving_identity.hash || offering_identity.hash (32 bytes), and the workblock uses the cheaper peering expansion rounds.

      Parameters

      • peeringId: Uint8Array<ArrayBufferLike>

        receiving_hash || offering_hash (32 bytes).

      • peeringKey: Uint8Array<ArrayBufferLike>

        The 32-byte candidate peering key.

      • targetCost: number

        Required leading zero bits.

      Returns Promise<boolean>