Compute CID locally for community post integrity verification

Client now computes CID from canonical record BEFORE sending to appview: 1. Build canonical record with exact structure appview expects 2. Compute CID using computeCid (DAG-CBOR, CIDv1, SHA-256) 3. Send expectedCid to appview for verification 4. Store client's CID in stub record (source of truth) This enables integrity verification: if appview modifies content, the CID won't match what's stored in the user's PDS stub record. The stub record in the user's repo acts as a cryptographic commitment to the original content, preserving user control over their data.


Author Rudy Fraser Date Commit Parent 3fd256bd
+36 -9
1 changed file
+36 -9
1 changed file