ChirpSyncSession.kt

480 B · raw

1package com.peachpasswords.sync23/**4 * Transport-neutral session consumed by the sync coordinator.5 *6 * Live transports use Noise NK. The dialer pins the responder's static key;7 * responder sessions leave [remoteStaticPublicKey] empty until initiator8 * proof-of-possession is available.9 */10data class ChirpSyncSession(11    val remoteStaticPublicKey: ByteArray,12    val send: (ByteArray) -> Unit,13    val receive: suspend () -> ByteArray,14    val close: suspend () -> Unit,15)