An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(crypto): PLC rotation op building, generalized verification, CID computation, audit log parsing #54

Summary

  • Add compute_cid for CIDv1 (dag-cbor, sha-256) computation from signed op CBOR bytes
  • Add build_did_plc_rotation_op for building rotation ops with flexible params and external signer callback
  • Add verify_plc_operation as a generalized verifier handling both genesis and rotation ops with multi-key support
  • Add parse_audit_log / diff_audit_logs for plc.directory audit log parsing and diffing
  • Promote PlcService to public; new types: SignedPlcOperation, VerifiedPlcOp, AuditEntry

Test plan

  • 14 new tests (62 total), all passing
  • CID format validation (multibase prefix, base32 charset, CIDv1 structure)
  • Rotation op: non-null prev, valid CID, signing error propagation
  • Generalized verifier: genesis ops, rotation ops, wrong key rejection, multi-key iteration, empty key list
  • Audit log: parsing, invalid JSON rejection, empty arrays, diffing (new entries, no new, empty cache)

Closes MM-158

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:web:malpercio.dev/sh.tangled.repo.pull/3mi4ywksaul22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
malpercio.dev submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments