Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for soroban auth framework 🚀 #1748

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

salaheldinsoliman
Copy link
Contributor

@salaheldinsoliman salaheldinsoliman commented Mar 1, 2025

This PR aims to support Soroban authorization framework:

Here are some keynotes to consider:

1- Unlike Solidity, Soroban performs its auth checks using the host. For instance, Soroban doesn't have the construct of if msg.sender == addr, however this check is done via a host function addr.require_auth.

2- Another function was added authAsCurrContract. This is needed for deeper calls. To understand this, take a look at https://github.com/stellar/soroban-examples/tree/main/deep_contract_auth.
What I have done here actually is test the auth framework using the above provided example of nested calls.

@salaheldinsoliman salaheldinsoliman force-pushed the feat/soroban_auth_framework branch from c383464 to 5820c61 Compare March 1, 2025 00:33
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
@salaheldinsoliman salaheldinsoliman self-assigned this Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant