Skip to content

Implement CAP-71 - built-in auth delegation mechanism.#1607

Draft
dmkozh wants to merge 4 commits intostellar:mainfrom
dmkozh:delegate_auth
Draft

Implement CAP-71 - built-in auth delegation mechanism.#1607
dmkozh wants to merge 4 commits intostellar:mainfrom
dmkozh:delegate_auth

Conversation

@dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Oct 8, 2025

What

Implement CAP-71 - built-in auth delegation mechanism.

This adds 2 new host functions: delegate_account_auth for protocol-supported auth delegation from the current __check_auth invocation to another Address's auth verification procedure, and get_delegated_signers_for_current_auth_check that returns the list of all the built-in delegated signers present in the current context.

Why

Better support for the modular custom account and foundation for G-account auth customization work. See CAP-71 for more detailed motivation

Known limitations

N/A

dmkozh added 4 commits October 8, 2025 14:17
This adds 2 new host functions: `delegate_account_auth` for protocol-supported auth delegation from the current `__check_auth` invocation to another Address's auth verification procedure, and `get_delegated_signers_for_current_auth_check` that returns the list of all the built-in delegated signers present in the current context.
I'm pretty sure `SigningKey` did not implement Clone at the time this has been introduced, but now it can be cloned and this can be simplified and reused among other tests more easily.
- Various scenarios involving G-accounts
- Make sure delegates can be reused on different tree levels
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.

1 participant