Skip to content

Conversation

@miker83z
Copy link
Contributor

@miker83z miker83z commented Dec 11, 2025

Description of change

All the examples in this PR are fixed and ready to be merged.

There are a couple of approaches that were used when the examples were created:

  1. Stand-alone accounts. A package contains the account struct itself as well as the related authentication logic.
  2. IOTAccount. An example where an account is implemented to be extended with data and the related authentication logic from 3rd-party packages. This example is not finished yet; it requires security rules to be implemented to control access to the internal state.
  3. Extension packages. Packages where data(a public key, etc.) and the related authenticator logic are implemented in a dedicated module; It makes it possible to reuse such utilities when a new account type is implemented.

We need to define an approach(es) that we want to demonstrate to users and categorize the examples in a separate pull request.

@vercel
Copy link

vercel bot commented Dec 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

6 Skipped Deployments
Project Deployment Review Updated (UTC)
apps-backend Ignored Ignored Preview Dec 16, 2025 10:09am
apps-ui-kit Ignored Ignored Preview Dec 16, 2025 10:09am
iota-evm-bridge Ignored Ignored Preview Dec 16, 2025 10:09am
iota-multisig-toolkit Ignored Ignored Preview Dec 16, 2025 10:09am
rebased-explorer Ignored Ignored Preview Dec 16, 2025 10:09am
wallet-dashboard Ignored Ignored Preview Dec 16, 2025 10:09am

@iota-ci iota-ci added sc-platform Issues related to the Smart Contract Platform group. vm-language Issues related to the VM & Language Team labels Dec 11, 2025
Base automatically changed from vm-lang/cherry-pick-create-account-and-deny to vm-lang/aa-auth/8805-beta-feature-branch December 15, 2025 10:17
@valeriyr valeriyr force-pushed the vm-lang/cherry-pick-aa-examples branch from f5588d1 to 08e1ee9 Compare December 15, 2025 13:38
@valeriyr valeriyr requested review from Dkwcs and theiari December 16, 2025 13:46
@valeriyr valeriyr marked this pull request as ready for review December 16, 2025 13:46
@valeriyr valeriyr requested a review from a team as a code owner December 16, 2025 13:46
members_addresses: vector<address>,
members_weights: vector<u64>,
threshold: u64,
authenticator: AuthenticatorInfoV1<DynamicMultisigAccount>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to pass the packageMetadata instead of authenticator directly?
(Also related to example below)

Copy link
Contributor

Choose a reason for hiding this comment

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

It shouldn't be a part of this PR; technically, it is not necessary because it is possible to create an AuthenticatorInfoV1 instance in a dedicated MoveCall in a PTB.
We can consider adding this in the following PR related to the examples. We need to discuss this and determine what the examples should look like before making any changes to them(not to waste time and not to create more mess than we already have).

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I think it'd be better to keep it "simpler", but yes we could consider adding it later on.

Copy link
Contributor

@Dkwcs Dkwcs left a comment

Choose a reason for hiding this comment

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

LGTM, left one comment.

Copy link
Contributor

@theiari theiari left a comment

Choose a reason for hiding this comment

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

Looks good, replied to that question on dynamic_multisig_account::create function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sc-platform Issues related to the Smart Contract Platform group. vm-language Issues related to the VM & Language Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants