MeshCore icon

MeshCore

Interact with a MeshCore device over TCP/WiFi

Utility → Encode Path Return

AI-generated

Summary

Encodes a MeshCore returned-path packet for a recipient, using the sender’s identity key to derive the shared secret and encrypt the route payload.

Inputs

  • Identity Private Key (required) — The sending identity’s 64-byte private key, as hex.
  • Recipient Public Key (required) — The recipient’s 32-byte public key, as hex.
  • Returned Path — Route path-hash bytes as hex. Its length must match the hop count and selected hash size.
  • Extra Type — A type byte from 0 to 15 for the extra payload appended after the route; defaults to 0.
  • Extra — Extra bytes as hex, appended after the route. When empty, the encoder uses the firmware convention of a 0xFF filler followed by four bytes.
  • Path Hash Size — Bytes per hop: 1, 2, or 3. Must match the mesh’s setting; defaults to 1.

Output shape

A single item containing the encoded packet data.

The operation encodes the packet; it does not send it. The provided source signatures do not show the exact output field names or representation.

Links

Discussion