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

Passkey types #2037

Merged
merged 8 commits into from
Jun 21, 2024
Merged

Passkey types #2037

merged 8 commits into from
Jun 21, 2024

Conversation

aramikm
Copy link
Collaborator

@aramikm aramikm commented Jun 18, 2024

Goal

The goal of this PR is to implement passkey types and extrinsics

Closes #2027

Discussion

  • The benchmark for calculating overhead is going to be implemented after all validation is done.
  • Do we need any events for observability?

Checklist

  • Tests added

pallets/passkey/src/lib.rs Outdated Show resolved Hide resolved
/// account id which is the origin of this call
pub account_id: T::AccountId,
/// account nonce
pub account_nonce: T::Nonce,
Copy link
Collaborator Author

@aramikm aramikm Jun 18, 2024

Choose a reason for hiding this comment

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

We might have other fields in addition to nonce. If that was the case we might put them inside their own struct.

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 22.44898% with 38 lines in your changes missing coverage. Please review.

Files Coverage Δ
pallets/passkey/src/lib.rs 53.57% <55.00%> (+3.57%) ⬆️
pallets/passkey/src/types.rs 0.00% <0.00%> (ø)

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Jun 18, 2024
@aramikm aramikm marked this pull request as ready for review June 18, 2024 19:12
@aramikm aramikm requested a review from wilwade as a code owner June 18, 2024 19:12
pub authenticator_data: PasskeyAuthenticatorData,
/// passkey client data in json format
pub client_data_json: PasskeyClientDataJson,
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

🥇

Copy link
Collaborator

@saraswatpuneet saraswatpuneet left a comment

Choose a reason for hiding this comment

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

great work! lgtm with nits

@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Jun 20, 2024
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Jun 20, 2024
Copy link
Collaborator

@JoeCap08055 JoeCap08055 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@mattheworris mattheworris left a comment

Choose a reason for hiding this comment

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

  • Read through changes
  • Executed unit tests (all passed)
    LGTM 🔥

@aramikm aramikm merged commit 2822132 into main Jun 21, 2024
28 checks passed
@aramikm aramikm deleted the passkey_types branch June 21, 2024 22:13
}
}

#[pallet::validate_unsigned]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe it would be beneficial for us to merge into a feature branch. I’m not clear on why we are merging directly into the main branch, as we haven’t done this before. Could you please explain the reason for this deviation?

saraswatpuneet added a commit that referenced this pull request Jun 24, 2024
Go after #2037 

# Goal
The goal of this PR is to setup functions and tests for account
signature checks

Part of: #2028 

# Checklist
- [ ] Chain spec updated
- [ ] Custom RPC OR Runtime API added/changed? Updated js/api-augment.
- [ ] Design doc(s) updated
- [x] Tests added
- [ ] Benchmarks added
- [ ] Weights updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metadata-changed Metadata has changed since the latest full release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Passkey - Implement proxy extrinsic
5 participants