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
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
@@ -21,7 +21,7 @@ This functionality enables a variety of use cases for dApps, enhancing user expe
21
21
When a user enters a dApp that supports x-chain accounts, the interaction and experience feel the same as with any Aptos wallet.
22
22
The user connects with a x-chain account (e.g., Phantom for Solana) and can view their Derivable Abstracted Account (DAA) details, sign messages, and submit transactions to the Aptos chain.
23
23
24
-
When a dapp submits a transaction using a x-chain account, the wallet adapter utilizes the `signIn` function (defined in the x-chain account standard) for domain verification and security.
24
+
When a dapp submits a transaction using a x-chain account, the wallet adapter utilizes the `signIn` function (defined in the x-chain account standard) for domain verification and security. If a specific wallet does not support the `signIn` method, the adapter falls back to using the default `signMessage`.
25
25
The wallet is requested to sign a message to submit a transaction on the Aptos network. Once the wallet approves the transaction, it is submitted to the Aptos chain, where it undergoes a signature verification process.
26
26
27
27
### How does DAA work in a x-chain account?
@@ -34,7 +34,7 @@ The computation of the DAA address is done using the `authenticationFunction` an
34
34
-`authenticationFunction`: This is a function that exists on-chain and is used to verify the signature of the x-chain account.
35
35
-`accountIdentity`: This represents the identity of the account used in the on-chain authentication function to verify the signature of the x-chain account.
36
36
In the Wallet Adapter, the `accountIdentity` is based on the original x-chain account's public key and the dApp domain (e.g., mydomain.com). The format is:
37
-
`${originWallet.publicKey}${domain}`
37
+
`${originWalletAddress}${domain}`
38
38
39
39
<Callout>
40
40
Since the account identity is based on the dApp domain, it is scoped to the dApp context. As a result, each account has a different DAA address on different dApps.
@@ -43,6 +43,18 @@ In the Wallet Adapter, the `accountIdentity` is based on the original x-chain ac
43
43
44
44
### How to integrate x-chain accounts in my dApp?
45
45
46
+
Currently, the adapter supports Solana and EVM chains
47
+
48
+
<Callout>
49
+
It is highly recommended to use the `@aptos-labs/wallet-adapter-react` package for the best experience. Make sure you integrate with the Aptos Wallet Adapter by following these [steps](./dapp.mdx)
50
+
</Callout>
51
+
52
+
<Tabsitems={['Solana', 'EVM']}>
53
+
{/* Solana */}
54
+
55
+
56
+
<Tabs.Tab>
57
+
46
58
The wallet adapter follows the [Solana Wallet Standard](https://github.com/wallet-standard/wallet-standard/blob/master/DESIGN.md) to discover wallets.
47
59
Currently, the wallets that have been tested and support cross-chain accounts are:
48
60
@@ -54,10 +66,6 @@ Currently, the wallets that have been tested and support cross-chain accounts ar
54
66
| OKX | ✅ ||
55
67
56
68
57
-
<Callout>
58
-
It is highly recommended to use the `@aptos-labs/wallet-adapter-react` package for the best experience. Make sure you integrate with the Aptos Wallet Adapter by following these [steps](./dapp.mdx)
59
-
</Callout>
60
-
61
69
Supporting x-chain accounts in a dApp requires only a 2-step installation process.
0 commit comments