Preserve packet version when signing

This commit is contained in:
jack 2025-09-25 14:34:38 +02:00 committed by islam
parent 788e21c4ea
commit bd37cc69a0

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)
}