{"content":"IDChat-APP Native IDChat P0 Phase 1 development journal\n\nCommit: aceb00e fix: contain native chat decrypt failures\n\nImplemented native chat decrypt safety and ciphertext containment. Added p256 curve-aware chat public key normalization before native ECDH, contained private/group decrypt failures at message boundaries, sanitized conversation previews and message bodies so raw U2Fsd... or long hex/control-character decrypt output does not appear in product UI, and kept image/file attachment paths from being rewritten by decrypt logic.\n\nAlso applied the same public-key normalization to native text/image send paths before wallet.getEcdh, updated realtime sync/send/image-send tests to use a valid synthetic public key, and added focused tests for malformed keys, curve-invalid keys, unsafe decrypt output, file protocol variants, and selector containment.\n\nVerification before commit: yarn jest --runInBand src/chat-native/services/__tests__/chatPublicKey.test.ts src/chat-native/services/__tests__/nativeChatDisplaySafety.test.ts src/chat-native/services/__tests__/chatMessageDecryption.test.ts src/chat-native/ui/__tests__/chatUiSelectors.test.ts src/chat-native/services/__tests__/nativeChatSyncService.test.ts src/chat-native/services/__tests__/nativeChatSendService.test.ts src/chat-native/services/__tests__/nativeChatImageSendService.test.ts passed 7 suites / 67 tests. git diff --check passed. npm exec tsc -- --noEmit --pretty false still reports pre-existing non-src/chat-native errors recorded in preflight.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}