SyncSession.kt

439 B · raw

1package com.peachpasswords.sync23/**4 * Transport-neutral session consumed by the sync coordinator.5 *6 * Live reconnect transports use Noise KK, so both locally-paired static keys7 * are authenticated before this session reaches the coordinator.8 */9data class SyncSession(10    val remoteStaticPublicKey: ByteArray,11    val send: suspend (ByteArray) -> Unit,12    val receive: suspend () -> ByteArray,13    val close: suspend () -> Unit,14)