-
Notifications
You must be signed in to change notification settings - Fork 62
refactor: create dedicated native functions for the AA object creation and support deny for move authenticators #9592
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
Conversation
…n and support deny for move authenticators # Description of change The account creation Move API was simplified by removing `AuthenticatorInfoV1CompatibilityProof`. Support `Deny` for Move authenticators on the signing phase. ## Links to any relevant issues fixes #9459 fixes #8856 Co-authored-by: Valerii Reutov <valeriy.reutov@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 6 Skipped Deployments
|
polinikita
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved files owned by consensus
| /// In fact package A may have a dependency on package B version 1, but can still refer to an `authenticate` | ||
| /// function defined in package B version 2. | ||
| /// Referring to an `authenticate` function with `create_auth_info_v1` is a strictly runtime dependency and | ||
| /// Refiring to an `authenticate` function with `create_auth_info_v1` is a strictly runtime dependency and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why Refiring here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a mistake during merging. Reverted in 4c3f8a7
| /// Borrow the account `UID` mutably. | ||
| /// This function must be called only from the functions protected by the IOTA Move bytecode verifier | ||
| /// from being called outside the `Account` module. | ||
| native fun borrow_account_uid_mut<Account: key>(account: &mut Account): &mut UID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments look weird (also in the other functions)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to improve the comments in 4c3f8a7.
Please let me know if you have ideas on how to make them better.
alexsporn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just some small comments that needs fixing.
Did not look thoroughly at all the different tests and snapshots.
8ca2a0c
into
vm-lang/aa-auth/8805-beta-feature-branch
…n and support deny for move authenticators (#9592) The account creation Move API was simplified by removing `AuthenticatorInfoV1CompatibilityProof`. Support `Deny` for Move authenticators on the signing phase. fixes #9459 fixes #8856 - [x] Basic tests (linting, compilation, formatting, unit/integration tests) - [x] Patch-specific tests (correctness, functionality coverage) - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have checked that new and existing unit tests pass locally with my changes --------- Co-authored-by: Valerii Reutov <valeriy.reutov@gmail.com>
…n and support deny for move authenticators (#9592) The account creation Move API was simplified by removing `AuthenticatorInfoV1CompatibilityProof`. Support `Deny` for Move authenticators on the signing phase. fixes #9459 fixes #8856 - [x] Basic tests (linting, compilation, formatting, unit/integration tests) - [x] Patch-specific tests (correctness, functionality coverage) - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have checked that new and existing unit tests pass locally with my changes --------- Co-authored-by: Valerii Reutov <valeriy.reutov@gmail.com>
…n and support deny for move authenticators (#9592) The account creation Move API was simplified by removing `AuthenticatorInfoV1CompatibilityProof`. Support `Deny` for Move authenticators on the signing phase. fixes #9459 fixes #8856 - [x] Basic tests (linting, compilation, formatting, unit/integration tests) - [x] Patch-specific tests (correctness, functionality coverage) - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have checked that new and existing unit tests pass locally with my changes --------- Co-authored-by: Valerii Reutov <valeriy.reutov@gmail.com>
Description of change
The account creation Move API was simplified by removing
AuthenticatorInfoV1CompatibilityProof.Support
Denyfor Move authenticators on the signing phase.Links to any relevant issues
fixes #9459
fixes #8856
How the change has been tested