temporary

This commit is contained in:
callebtc
2025-07-16 16:01:49 +02:00
parent abbe89a00f
commit d76644e58a
7 changed files with 344 additions and 17 deletions
@@ -80,6 +80,8 @@ data class BitchatPacket(
var ttl: UByte
) : Parcelable {
// Secondary constructor removed to enforce ByteArray usage for peerIDs
/*
constructor(
type: UByte,
ttl: UByte,
@@ -95,6 +97,7 @@ data class BitchatPacket(
signature = null,
ttl = ttl
)
*/
fun toBinaryData(): ByteArray? {
return BinaryProtocol.encode(this)