Code
Branches
CI
Releases
Discussions
Prompts
Settings
messenger / ios / LChatCore / Tests / LChatCoreTests / Fixtures / message-payload-vector.json
Download this file
1 { 2 "_comment": "Message-payload test vector. Generated by test/messageblob.test.mjs from web/static/crypto.js. LChatCore's MessagePayloadVectorTests decrypts `blob` with `keyB64` and must decode every `expect` field — a cross-implementation gate so native message decryption never drifts from the web's. Regenerate with: node test/messageblob.test.mjs --emit", 3 "keyB64": "fb66PrrNt5rh9cZ8mMVfEY85fBakhu9lO9_pqsOCFaQ", 4 "blob": "Knhqu0GGqikEsLe_P2dt4FEArF-tR_57VMeC_i2XVgSmYKSm8qarV4AiVSGnJVDkQ_i7gfW0WuJ7dMHlKpis646xMjmKqYMl7A7NvBOL-3OGktJdk-G2J7YB1WOWVkvZzsAANqMV4hYOeW0jc4XLmReMNP6du04c8d__USTxLdNxZ4caNhjGyBO7iiwu8HPDuCDucCl3PMj2YRfkkI2zpBi5nnwyNgCvdOSuMsyMhwJsmOok9ajaYGNYCNRAe3DxqkS6fAeuOzjusgSccNHQ99iqf3nabYBsLfkziifvd51wmjtlJTzwOsObbzpQ_i-V4wtp4BV8hPiSdYKhItiCcBF0A3b7mrj3Q1UasB7e4MRpAaMYkEyRTFTrCGTCx4zz5VEVddWN9gl96KARJGVYSrVQzVGTDmxTbGujjlSM5UfjvvXyGnimNjy79t9HOuNlJDUnqxA9pmoYzaU6tq2-KNQriqE9VFcP7KPsADAGaZWYGqrVguwzcP9EXk5rozfewp7h3sOE9hSFHu0D1Q", 5 "expect": { 6 "text": "Hello from the vector! 🎉", 7 "name": "Paul", 8 "uid": "u_vector", 9 "ts": 1751830000000, 10 "attachments": [ 11 { 12 "id": "blob123", 13 "name": "photo.jpg", 14 "type": "image/jpeg", 15 "w": 800, 16 "h": 600, 17 "size": 123456 18 }, 19 { 20 "id": "blob456", 21 "name": "clip.mp4", 22 "type": "video/mp4", 23 "w": 1280, 24 "h": 720, 25 "size": 9876543, 26 "poster": "blob457", 27 "dur": 12.5 28 } 29 ], 30 "replyTo": { 31 "id": 41, 32 "name": "Ada", 33 "snippet": "the original line" 34 } 35 } 36 } 37