Skip to content

feat: add register_user smart contract function#103

Merged
Tybravo merged 1 commit into
SwiftChainn:mainfrom
0xDeon:feat-register-user-56
May 27, 2026
Merged

feat: add register_user smart contract function#103
Tybravo merged 1 commit into
SwiftChainn:mainfrom
0xDeon:feat-register-user-56

Conversation

@0xDeon

@0xDeon 0xDeon commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary of implementation

Implemented the register_user and get_user_profile functions in the identity_reputation_contract contract.

Storage implementation details

Used DataKey::UserProfile(Address) in Soroban persistent storage to store the user profiles. Added a TTL extension of 6 days.

Authentication handling

Verified user authentication using user.require_auth() before storing.

Tests added

Added unit tests for user registration, duplicate registration handling, and missing profiles.

Fixes #56

@drips-wave

drips-wave Bot commented May 26, 2026

Copy link
Copy Markdown

@0xDeon Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Tybravo Tybravo merged commit 9315c61 into SwiftChainn:main May 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Smart Contract: Implement register_user Function

2 participants