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

feat: [Pallet Pass] Configuration extensions #25

Merged
merged 10 commits into from
Oct 12, 2024

Conversation

pandres95
Copy link
Member

This Pull Request implements two complementary extensions, necessary to make pallet-pass function correctly.

  1. A SignedExtension that helps charging the actual AccountId for the pass user.
  2. A decoration on the authenticate call to make it be free if the authentication attempt is valid (i.e. the device resolves to an AccountId and such account exists).
    This is because authentication should be a free service (I mean, how would you authenticate on a system if you can't pay fees otherwise?)

@pandres95 pandres95 self-assigned this Oct 9, 2024
@pandres95 pandres95 added enhancement New feature or request pallet-pass labels Oct 9, 2024
@pandres95 pandres95 changed the title [Pallet Pass] Configuration extensions feat: [Pallet Pass] Configuration extensions Oct 9, 2024
Copy link
Contributor

@jgutierrezre jgutierrezre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

pallets/pass/src/lib.rs Show resolved Hide resolved
pallets/pass/src/extension.rs Show resolved Hide resolved
@olanod olanod merged commit 35be74c into main Oct 12, 2024
6 checks passed
@olanod olanod deleted the feat/pallet-pass-configuration-extensions branch October 12, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants