pub fn decode_sync_state(
    data: Uint8Array
) -> Result<SyncState, DecodeSyncStateErr>