callebtc and GitHub
4acfafb998
fix fragmentation baby ( #266 )
2025-08-19 11:16:23 +02:00
callebtc and GitHub
9795e2ce8a
Changes bitchat protocol ( #265 )
...
* create payload
* compiles and can send messages
* identityannouncement
* DMs work, read receipt not sent yet
* works
* delete old code
* simplify
* working
* fragment wip
* compression wip
* use zlib compression
* clean
* nice
* mesh
* remove comments
2025-08-18 21:16:27 +02:00
callebtc and GitHub
c3c395832c
Implement Noise XX Handshake Protocol for Direct Messages ( #180 )
...
* noise
* works?
* noise
* temporary
* better
* wip: use subnet
* better
* barely working
* werk
* subnet
* fix peer ID
* 8 byte peer ID
* wip noise
* wip fixes for noise
* std lib for noise
* noise handshake one step further
* buffers
* use fork
* fix imports
* simplify counter
* remove trash
* hashing
* no prologue
* nice
* wip, use noise encryption
* peer ID hex
* simplify session manager
* heavy logging
* use singleton
* Fix Noise session race condition with elegant per-peer actor serialization
- Use Kotlin coroutine actors for per-peer packet processing
- Each peer gets dedicated actor that processes packets sequentially
- Eliminates race conditions in session management without complex locking
- Single surgical change in PacketProcessor - minimal, maintainable
- Leverages Kotlin's native concurrency primitives
* decrypt correctly
* iniator works now
* clean code and fix signature to null
* better
* no signature in private message
* small fixes
* refactor ack
* refactor but untested
* messages working
* wip ack
* wip fix ack
* more logging
* pending tracker
* keep pending connections on errors
* less logging
* refactor model
* refactor frombinarydata
* idendityannouncement refactor and update to new binary protocol
* fix keys
* refix keys
* dms work
* revert to mainnet
* do not change bluetooth adapter name
* keep code but uncomment
* clean up comments
* cleanup comments
2025-07-24 12:01:46 +02:00
ShilohEye
33d273f268
Fix Android fragmentation for iOS/Rust compatibility
...
- Changed MAX_FRAGMENT_SIZE from 500 to 150 bytes to match iOS/Rust
- Fixed fragment ID generation to use 8 random bytes instead of string
- Implemented automatic fragmentation in BluetoothConnectionManager
- Added 20ms delay between fragments to match iOS/Rust implementation
- Updated fragment calculation to account for full packet overhead (34 bytes)
This ensures Android-generated fragments fit within iOS's default 185-byte BLE MTU,
fixing issues with commands like ?ls -la and ?ifconfig failing on iOS devices.
2025-07-10 19:25:52 -04:00
callebtc
9ba8dca82a
seems to work
2025-07-08 23:38:35 +02:00