Preserve packet version when signing

This commit is contained in:
jack
2025-10-15 00:37:41 +01:00
committed by islam
parent 788e21c4ea
commit bd37cc69a0
+2 -1
View File
@@ -80,7 +80,8 @@ struct BitchatPacket: Codable {
timestamp: timestamp,
payload: payload,
signature: nil, // Remove signature for signing
ttl: 0 // Use fixed TTL=0 for signing to ensure relay compatibility
ttl: 0, // Use fixed TTL=0 for signing to ensure relay compatibility
version: version
)
return BinaryProtocol.encode(unsignedPacket)
}