reticulum-js
    Preparing search index...
    • Decrypts a raw (non-LXMF) channel inner_blob and extracts the payload.

      Inverse of wrapRawChannelMessage: EC-decrypts with the channel identity, verifies the RTID magic, extracts the embedded sender public key, and returns the remaining bytes as the application payload. The sender identity is derived from the prelude public key.

      The channel EC gate is the authorisation check: only a subscriber holding the channel private key can produce an inner_blob that decrypts to a valid RTID prelude. Integrity of the payload itself is the application's responsibility (e.g. verify an embedded signature) — rfed does not inspect it.

      Parameters

      • opts: { channelIdentity: Identity; innerBlob: Uint8Array<ArrayBufferLike> }
        • channelIdentity: Identity

          Channel's derived Identity (holds the private key used to EC-decrypt).

        • innerBlob: Uint8Array<ArrayBufferLike>

          EC-encrypted channel message (no channel-hash prefix, no stamp).

      Returns Promise<
          { payload: Uint8Array; senderIdentity: Identity; senderPub: Uint8Array },
      >

      when decryption fails or the RTID magic is absent.