Skip to main content

Module explicit_transfer_crypto

Module explicit_transfer_crypto 

Source
Expand description

Encrypted explicit file-transfer helpers shared by native hosts.

Iroh bi-stream wire format:

  • each logical write is one length-framed ORTCE1 envelope (RAW_STREAM_TYPE_ID = 3)
  • the first decrypted frame is the 0x02 protocol byte
  • the second decrypted frame is 4-byte JSON length || header JSON
  • subsequent decrypted frames are file chunks

The 0x02 byte remains the explicit-file stream discriminator; current transport uses the admitted logical-Iroh stream rather than a direct WebRTC route.

Structs§

TransferReceiver

Enums§

TransferSender

Constants§

EXPLICIT_FILE_PROTOCOL_BYTE

Functions§

header_is_encrypted
open_payload
open_payload_optional
protect_payload
read_transfer_header
transfer_sender