You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: delegation-toolkit/concepts/smart-accounts.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,21 +37,21 @@ ERC-4337 introduces the following concepts:
37
37
38
38
## Smart account implementation types
39
39
40
-
The MetaMask Delegation Toolkit supports three types of MetaMask Smart Accounts, each offering unique features and use cases.
40
+
The MetaMask Delegation Toolkit supports three types of MetaMask Smart Accounts, each offering different signature schemes for verifying access to the smart account.
41
41
42
42
See [Create a smart account](../guides/smart-accounts/create-smart-account.md) to learn how to use these different account types.
43
43
44
44
### Hybrid smart account
45
45
46
-
The Hybrid smart account is a flexible implementation that supports both an externally owned account (EOA) owner and any number of P256 (passkey) signers.
46
+
The Hybrid smart account is a flexible implementation that supports both an externally owned account (EOA) owner and any number of passkey (WebAuthn) signers.
47
47
You can configure any of these signers as the signatory, and use them to sign any data, including user operations, on behalf of the smart account.
48
48
49
49
This type is referenced in the toolkit as `Implementation.Hybrid`.
50
50
51
51
### Multisig smart account
52
52
53
53
The Multisig smart account is an implementation that supports multiple signers with a configurable threshold for valid signatures, allowing for enhanced security and flexibility in account management.
54
-
The signatorymust have at least as many signers include as the threshold is configured for the account.
54
+
The signatory, which signs on behalf of the smart account, must have at least as many signers as the configured threshold.
55
55
56
56
This type is referenced in the toolkit as `Implementation.Multisig`.
[Create a MetaMask smart account](../../guides/smart-accounts/create-smart-account.md) to send the first user operation.
47
47
48
48
This example configures a Hybrid smart account,
49
-
which is a flexible smart account implementation that supports both an externally owned account (EOA) owner and any number of P256 (passkey) signers:
49
+
which is a flexible smart account implementation that supports both an externally owned account (EOA) owner and any number of passkey (WebAuthn) signers:
Copy file name to clipboardExpand all lines: delegation-toolkit/guides/smart-accounts/create-smart-account.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@ import TabItem from "@theme/TabItem";
9
9
# Create a smart account
10
10
11
11
You can enable users to create a [MetaMask smart account](../../concepts/smart-accounts.md) directly in your dapp.
12
-
This page provides examples of using [`toMetaMaskSmartAccount`](../../reference/api/smart-account.md#tometamasksmartaccount) with Viem Core SDK to create different types of smart accounts with different types of signatories.
12
+
This page provides examples of using [`toMetaMaskSmartAccount`](../../reference/api/smart-account.md#tometamasksmartaccount) with Viem Core SDK to create different types of smart accounts with different signature schemes.
13
+
An account's supported *signatories* can sign data on behalf of the smart account.
13
14
14
15
## Prerequisites
15
16
@@ -18,7 +19,7 @@ This page provides examples of using [`toMetaMaskSmartAccount`](../../reference/
18
19
19
20
## Create a Hybrid smart account
20
21
21
-
A Hybrid smart account supports both an externally owned account (EOA) owner and any number of P256 (passkey) signers.
22
+
A Hybrid smart account supports both an externally owned account (EOA) owner and any number of passkey (WebAuthn) signers.
22
23
You can create a Hybrid smart account with the following types of signatories.
23
24
24
25
### Create a Hybrid smart account with an Account signatory
### Create a Hybrid smart account with a WebAuthn (passkey) signatory
142
+
### Create a Hybrid smart account with a passkey signatory
142
143
143
-
Use [`toMetaMaskSmartAccount`](../../reference/api/smart-account.md#tometamasksmartaccount) and Viem's [`toWebAuthnAccount`](https://viem.sh/account-abstraction/accounts/webauthn) to create a Hybrid smart account with a WebAuthn Account signatory:
144
+
Use [`toMetaMaskSmartAccount`](../../reference/api/smart-account.md#tometamasksmartaccount) and Viem's [`toWebAuthnAccount`](https://viem.sh/account-abstraction/accounts/webauthn) to create a Hybrid smart account with a passkey (WebAuthn) signatory:
144
145
145
146
:::info Installation required
146
147
To work with WebAuthn, install the [Ox SDK](https://oxlib.sh/).
0 commit comments