Skip to content

Add two-step credential transfer feature - #75

Merged
michaelvic123 merged 2 commits into
laugh-tales:mainfrom
DavisVT:feature/credential-transfer
Jul 30, 2026
Merged

Add two-step credential transfer feature#75
michaelvic123 merged 2 commits into
laugh-tales:mainfrom
DavisVT:feature/credential-transfer

Conversation

@DavisVT

@DavisVT DavisVT commented Jul 30, 2026

Copy link
Copy Markdown
Contributor
  • Add TransferRequest struct with credential_id, from, to, requested_at fields
  • Add DataKey::TransferRequest(u64) storage key
  • Add propose_transfer function for subjects to propose credential transfers
  • Add approve_transfer function for issuers to approve and execute transfers
  • Update SubjectCredentials for both addresses on approval
  • Update both Identity records (decrement old, increment/create new)
  • Emit credential_transfer_proposed and credential_transfer_approved events
  • Add comprehensive tests for full flow, auth enforcement, and identity updates
    closes Add credential transfer function with issuer approval (two-step flow) #26

DavisVT added 2 commits July 30, 2026 02:38
- Add TransferRequest struct with credential_id, from, to, requested_at fields
- Add DataKey::TransferRequest(u64) storage key
- Add propose_transfer function for subjects to propose credential transfers
- Add approve_transfer function for issuers to approve and execute transfers
- Update SubjectCredentials for both addresses on approval
- Update both Identity records (decrement old, increment/create new)
- Emit credential_transfer_proposed and credential_transfer_approved events
- Add comprehensive tests for full flow, auth enforcement, and identity updates
@michaelvic123
michaelvic123 merged commit 4dd36e2 into laugh-tales:main Jul 30, 2026
0 of 3 checks 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.

Add credential transfer function with issuer approval (two-step flow)

2 participants