sui_flash::profile — On-Chain Flash-Card Manager Sui Overflow Hackathon Submission | Built on Sui
SuiFlash is a lightweight, on-chain flashcard application built on the Sui blockchain. It empowers users to create, own, and study digital flashcard collections directly from their Sui wallet. No centralized servers, no passwords, and no middlemen, SuiFlash lets users:
- Self-register on-chain and manage their own profile object
- Create named collections of flash cards (decks)
- Add individual flash cards (front & back text) into those decks
- Store all user data immutably via Move dynamic fields and tables
By making every deck and card a first-class Sui object, SuiFlash demonstrates how on-chain study tools can be built with strong ownership guarantees, native transferability, and transparent state evolution.
-
User Registration
- Single
ProfileManagersingleton tracks which addresses have customized profiles - Each new registrant receives a unique
UserProfileobject, embedding their ownUserData
- Single
-
Dynamic Field Storage
- Per-user data (total decks, total cards, deck metadata) lives in a dynamic field on your
UserProfile - Clean separation between on-chain objects and user-scoped tables
- Per-user data (total decks, total cards, deck metadata) lives in a dynamic field on your
-
Deck Creation
create_new_collectionlets you name your deck (e.g. “Biology 101”)- New
FlashCardCollectionobject is minted and transferred to your address
-
Card Minting
add_flash_cardcreates individualFlashCardobjects with front/back text- Cards are stored in the deck’s internal table, and deck counts auto-increment
-
Pure Move-Native Logic
- All validation, error handling, and state updates happen within Move entry functions
- No off-chain components needed to run or test basic flows
-
Deploy your package
sui client publish