[BOUNTY #803] Soroban escrow: identity module — address binding rules#852
Open
zhaog100 wants to merge 1 commit intoJagadeeshftw:masterfrom
Open
[BOUNTY #803] Soroban escrow: identity module — address binding rules#852zhaog100 wants to merge 1 commit intoJagadeeshftw:masterfrom
zhaog100 wants to merge 1 commit intoJagadeeshftw:masterfrom
Conversation
Implement address binding to prevent spoofed identities on claims: - Add IdentityBinding struct with bound_issuer, nonce, and active flag - Add bind_identity() — creates binding (admin-only, issuer must be authorized) - Add unbind_identity() — revokes binding, clears stored identity data - Add validate_binding() — checks active binding + issuer match before claim - Add get_binding() — query binding state for an address - Monotonic nonce prevents replay of stale binding payloads - submit_identity_claim now validates binding before accepting claims - Add DataKey::IdentityBinding(Address) to storage key enum Tests: 16 tests covering bind, unbind, rebind nonce increment, query, claim-without-binding rejection, unbind-nonexistent noop, and all original identity/limits tests. Security notes: - bind/unbind are admin-gated (require_auth on admin) - issuer must be in authorized set before binding is accepted - expired claims still fall back to Unverified tier - nonce prevents replay even if binding payload is intercepted Closes Jagadeeshftw#803
|
@zhaog100 is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
@zhaog100 Please apply to that issue via drips platform. |
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.
Implement address binding rules to prevent spoofed identities on claims.
Changes:
Security: admin-gated bind/unbind, authorized issuer check, monotonic nonce anti-replay, expired claims fall back to Unverified.
Closes #803