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

WebRTC datachannel wire format keeps the legacy 0x02 frame layout but encrypts the header/chunk payloads with the same ORTCE1 envelope (no extra length frame).

Structs§

ExplicitTransferReceiver

Enums§

ExplicitTransferSender

Constants§

EXPLICIT_FILE_PROTOCOL_BYTE

Functions§

explicit_transfer_sender
open_webrtc_explicit_payload
open_webrtc_explicit_payload_optional
plaintext_header_looks_encrypted
protect_webrtc_explicit_payload
read_explicit_transfer_header_json