pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function grantSession

    • Derives the session a grant activates, the same one the device computes.

      Neither side sends a key: both derive it from the nonces the join exchange carried, so the network can read what the device it just admitted sends.

      Parameters

      • grant: Grant

        The address and settings granted.

      • appKey: Uint8Array

        The 16-byte application root key the device shares.

      • devNonce: number

        The nonce the matching join-request carried.

      Returns Session

      The session to secure this device's traffic with.

      If the key or the channel list is the wrong length.