What: Add a content hash field to courses for verifying on-chain content matches expected content.
Why: Course content integrity needs verification. Content hash ensures content hasn't been tampered with.
Scope: Add content_hash: Symbol field to Course struct. Add set_course_content_hash admin function. Verify hash in enrollment.
Acceptance criteria:
- Courses have content hash
- Hash can be updated
- Hash is queryable
- Hash verification is optional
Technical context: contracts/progress-tracker/src/types.rs:4-17 — Course struct.
What: Add a content hash field to courses for verifying on-chain content matches expected content.
Why: Course content integrity needs verification. Content hash ensures content hasn't been tampered with.
Scope: Add
content_hash: Symbolfield toCoursestruct. Addset_course_content_hashadmin function. Verify hash in enrollment.Acceptance criteria:
Technical context:
contracts/progress-tracker/src/types.rs:4-17— Course struct.