# PR: Audit and Document Off-Chain Data in Soroban Contracts#237
Open
gelluisaac wants to merge 1 commit intoSkillCert:mainfrom
Open
# PR: Audit and Document Off-Chain Data in Soroban Contracts#237gelluisaac wants to merge 1 commit intoSkillCert:mainfrom
gelluisaac wants to merge 1 commit intoSkillCert:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive documentation identifying all on-chain data structures and fields in the SkillCert Soroban smart contracts that are candidates for migration to off-chain storage.
Type of Change
Description
Currently, the Soroban smart contracts store extensive application data (user profiles, course metadata, etc.) directly on-chain, which is not optimal for blockchain technology due to high storage costs and gas inefficiency.
This audit formally documents:
Changes
docs/OFF_CHAIN_DATA_AUDIT.mdcontaining the full audit reportKey Findings
Structs Analyzed
user_profileUserProfilename,email,country,profession,goalscourse_accessUserProfilename,email,profession,goals,countryuser_managementUserProfilefull_name,contact_email,profession,country,purpose,profile_picture_urluser_managementLightProfilefull_name,profession,countrycourse_registryCoursetitle,description,category,language,thumbnail_url,level,duration_hourscourse_registryCourseModuletitle,positioncourse_registryCourseGoalcontentcourse_registryCourseCategoryname,descriptionOff-Chain Database Tables Proposed
users— User profile informationcourses— Course metadatacourse_modules— Module titles and positionscourse_goals— Goal contentcourse_categories— Category names and descriptionscontract_metadata— Contract schema export dataFiles Analyzed
contracts/user_profile/src/schema.rscontracts/course/course_access/src/schema.rscontracts/course/course_registry/src/schema.rscontracts/user_management/src/schema.rscontracts/user_management/src/models/user.rscontracts/schema_export/src/lib.rsTesting
Checklist
Related Issues
Closes #235 Audit and Identify Off-Chain Data in Contracts
Next Steps
This audit serves as the foundation for: