Nyx aims to bring privacy to Ethereum users with minimum friction and trust.
It helps users bridge and manage assets between their public and private accounts.At a high level, accessing a user’s Nyx account requires both their Ethereum wallet and a passkey.
The Nyx backend helps users use Nyx across devices and browsers, while remaining completely agnostic to users’ asset and transaction information.
Read below to learn the details.
Connected account
The connected account on Nyx is an Ethereum account.
Users start by simply connecting their existing Ethereum wallet, be it an in-browser wallet, a hardware wallet, an MPC wallet, or a WalletConnect-compatible mobile wallet.As a result, anything happening on the connected account is visible to the world, just like any other Ethereum account.
Private account
The private account on Nyx is powered by Aztec, a privacy-first L2 on Ethereum.
Aztec provides the foundation to build verifiable smart contracts with private state, while leveraging the decentralized security of Ethereum for the overall soundness of the network state.
For more details on Aztec, please see Aztec Overview.
Account governance
Aztec has native account abstraction, which allows arbitrary transaction authorization logic.
The Nyx private account is a special Aztec account that authorizes transactions through EIP-712 typed data signatures from the user’s connected account.
Each Aztec account is also associated with a set of privacy keys that deal with encrypting and nullifying private notes.
The Nyx private account derives its privacy keys from an account secret, which is generated on the client side during provisioning.
The Nyx backend stores an encrypted copy of the account secret, which can only be decrypted on the user’s device.
Read more in the Backend section below.In summary, the Nyx private account is derived from the Ethereum account connected by the user, plus an account secret.
In order to decrypt and view the private account state, the account secret is required.
On top of that, to send a transaction from the Nyx private account, a valid message signature from the user’s connected Ethereum wallet is also required.
Read more in Transaction authorization.
Privacy
At a high level, all of the following transaction data are hidden from the world:
Sender address.
Private function calls.
Private state changes.
For instance, in a simple transaction where Alice privately sends Bob 1 USDC, only Alice and Bob would know what happened.
The world only sees someone sent a transaction that nullified some encrypted notes and created some new encrypted notes.
This is achieved through client-side execution and proving inside the Aztec PXE.Aztec also supports public functions and state, which is fully transparent and works a lot like the EVM, so we won’t go into details here.
Backend
The Nyx backend exists to help users manage and sync their account secret across devices, among other offchain state that are needed to operate their Nyx account.
It does this while remaining completely agnostic to any sensitive user data.
In particular, it never sees any of the following user data:
Public account address.
Private account address.
Private account state.
Account secret.
This is achieved through a combination of zero-knowledge proofs and end-to-end encryption, which we’ll explore more below.
Wallet ID
To maintain offchain state for Nyx users, every connected account is associated with a Nyx wallet ID, which is the Poseidon hash of the connected account address.
By nature of the hash function, the Nyx backend cannot deduce the actual connected account address from this wallet ID.
Ownership proof
In order to access data belonging to a Nyx wallet ID, the user needs to first authenticate with the Nyx backend.
This involves signing a one-time message using their connected Ethereum wallet, which proves ownership of the connected account and thus its derived Nyx wallet ID.
However, instead of directly sending over the signature, which would leak the user’s connected account address to the Nyx backend, a zero-knowledge proof is generated.
This proof proves the existence of the valid signature and links it to the Nyx wallet ID, without leaking the actual signature nor the address.
Wallet encryption key
Each Nyx wallet has an associated encryption key, which is used to encrypt any sensitive data before they leave the user’s device.
This includes the account secret, the contact book, and any other data that are required for Nyx operations but may leak the user’s private account state or activities.
The Nyx backend will only ever see the ciphertexts of such data.The wallet encryption key is generated on the client side when provisioning the user’s private account for the first time, and never leaves the user’s device in plaintext.
WebAuthn credentials
During the provisioning of a Nyx private account, the user must also enroll a WebAuthn credential, or passkey, which is used to encrypt the wallet encryption key before the ciphertext is sent to the Nyx backend for backup.
Nyx requires passkeys that support the PRF extension, which includes many popular providers such as
YubiKey
Ledger Security Key app
Apple Passwords
Google Password Manager
1Password
…
The key material is derived from the PRF evaluation result of the passkey, which is never persisted nor transmitted.
Thus the same passkey must be present for decrypting its encrypted data.Nyx supports enrolling multiple passkeys for redundancy.
Each passkey is used to encrypt the same wallet encryption key.
Any one of them can be used to decrypt the wallet encryption key, and thus unlock the account.
Users are strongly encouraged to enroll multiple passkeys to ensure continued
access to their Nyx private account in case of a passkey loss, because the Nyx
team has no way of recovering it.
Because Ledger Security Key app is a supported passkey option, Ledger users
can choose to consolidate all of their Nyx account access control on a single
Ledger device (recoverable from a single seed phrase).
Sample access flows
We include some sample flows to help illustrate how the various pieces fit together when accessing a Nyx private account.
Unlock private account
The goal of unlocking the private account is to gather all necessary information for Aztec PXE, running inside the Nyx frontend, to be able to read their private state, and to execute and prove transactions from the user’s private account.
Send private transaction
Once the private account has been unlocked, each transaction from it requires sign-off from the user’s connected Ethereum wallet just like transactions from their connected Ethereum account.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nyx Documentation","colors":{"primary":"#A855F7","light":"#A855F7","dark":"#A855F7"},"logo":{"light":"https://mintcdn.com/nyx/kUndHKHXSxV0osBd/logo/dark.svg?fit=max\u0026auto=format\u0026n=kUndHKHXSxV0osBd\u0026q=85\u0026s=d2bfb08c69926f32fd3539c9d51419dd","dark":"https://mintcdn.com/nyx/kUndHKHXSxV0osBd/logo/light.svg?fit=max\u0026auto=format\u0026n=kUndHKHXSxV0osBd\u0026q=85\u0026s=f3d668ad940f530bc5f84f5f2729e2c1","href":"https://app.nyx.money/"},"favicon":"https://mintcdn.com/nyx/kUndHKHXSxV0osBd/nyx.svg?fit=max\u0026auto=format\u0026n=kUndHKHXSxV0osBd\u0026q=85\u0026s=46b150ac4ea81e6a7ad7b006de68ec8c","appearance":{"default":"dark","strict":false},"background":{"color":{"light":"#F2F2F2","dark":"#1C2232"}},"navbar":{"primary":{"type":"button","label":"Nyx app","href":"https://app.nyx.money/"}},"footer":{"socials":{"x":"https://x.com/nyxmoney"}},"seo":{"metatags":{"og:site_name":"nyx.money docs","og:image":"/images/og-image.png"},"indexing":"navigable"},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nyx","hasAudioNarration":false,"actualSubdomain":"nyx","customDomains":["docs.nyx.money"],"gitSource":{"type":"github","owner":"nyx-money","repo":"nyx-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af5f2dbbb452cd0b1dc0422","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Help center","count":9},{"language":"default","tag":"Using Nyx","count":4},{"language":"default","tag":"General questions","count":4},{"language":"default","tag":"Technical docs","count":4},{"language":"default","tag":"Home","count":2},{"language":"default","tag":"Changelog","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"technical-docs/account-overview","slug":"/technical-docs/account-overview","pageMetadata":{"title":"Account overview","description":"How Nyx accounts are governed and their privacy.","hideFooterPagination":true,"href":"/technical-docs/account-overview"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How Nyx accounts are governed and their privacy.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,em:`em`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Mermaid,Tip,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Nyx aims to bring privacy to Ethereum users with minimum friction and trust.\nIt helps users bridge and manage assets between their public and private accounts.`}),`\n`,_jsx(_components.p,{children:`At a high level, accessing a user’s Nyx account requires both their Ethereum wallet and a passkey.\nThe Nyx backend helps users use Nyx across devices and browsers, while remaining completely agnostic to users’ asset and transaction information.\nRead below to learn the details.`}),`\n`,_jsx(Heading,{level:`2`,id:`connected-account`,children:`Connected account`}),`\n`,_jsx(_components.p,{children:`The connected account on Nyx is an Ethereum account.\nUsers start by simply connecting their existing Ethereum wallet, be it an in-browser wallet, a hardware wallet, an MPC wallet, or a WalletConnect-compatible mobile wallet.`}),`\n`,_jsx(_components.p,{children:`As a result, anything happening on the connected account is visible to the world, just like any other Ethereum account.`}),`\n`,_jsx(Heading,{level:`2`,id:`private-account`,children:`Private account`}),`\n`,_jsxs(_components.p,{children:[`The private account on Nyx is powered by `,_jsx(_components.a,{href:`https://aztec.network/`,children:`Aztec`}),`, a privacy-first L2 on Ethereum.\nAztec provides the foundation to build verifiable smart contracts with private state, while leveraging the decentralized security of Ethereum for the overall soundness of the network state.\nFor more details on Aztec, please see `,_jsx(_components.a,{href:`https://docs.aztec.network/developers/overview`,children:`Aztec Overview`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`account-governance`,children:`Account governance`}),`\n`,_jsxs(_components.p,{children:[`Aztec has `,_jsx(_components.a,{href:`https://docs.aztec.network/developers/docs/foundational-topics/accounts`,children:`native account abstraction`}),`, which allows arbitrary transaction authorization logic.\nThe Nyx private account is a special Aztec account that authorizes transactions through `,_jsx(_components.a,{href:`https://eips.ethereum.org/EIPS/eip-712`,children:`EIP-712`}),` typed data signatures from the user’s connected account.\nEach Aztec account is also associated with a set of `,_jsx(_components.a,{href:`https://docs.aztec.network/developers/docs/foundational-topics/accounts/keys`,children:`privacy keys`}),` that deal with encrypting and nullifying private notes.\nThe Nyx private account derives its privacy keys from an `,_jsx(_components.em,{children:`account secret`}),`, which is generated on the client side during provisioning.\nThe Nyx backend stores an encrypted copy of the account secret, which can only be decrypted on the user’s device.\nRead more in the `,_jsx(_components.a,{href:`#backend`,children:`Backend`}),` section below.`]}),`\n`,_jsxs(_components.p,{children:[`In summary, the Nyx private account is derived from the Ethereum account connected by the user, plus an account secret.\nIn order to decrypt and view the private account state, the account secret is required.\nOn top of that, to send a transaction from the Nyx private account, a valid message signature from the user’s connected Ethereum wallet is also required.\nRead more in `,_jsx(_components.a,{href:`/technical-docs/transaction-authorization`,children:`Transaction authorization`}),`.`]}),`\n`,_jsx(Mermaid,{chart:`flowchart TD\n A(Ethereum Wallet) -->|Governs| B(Nyx Connected Account)\n B -->|Derives| C(Nyx Private Account)\n A -->|Governs| C\n D(Account Secret) -->|Derives \u0026 Decrypts| C`}),`\n`,_jsx(Heading,{level:`3`,id:`privacy`,children:`Privacy`}),`\n`,_jsx(_components.p,{children:`At a high level, all of the following transaction data are hidden from the world:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Sender address.`}),`\n`,_jsx(_components.li,{children:`Private function calls.`}),`\n`,_jsx(_components.li,{children:`Private state changes.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For instance, in a simple transaction where Alice privately sends Bob 1 USDC, only Alice and Bob would know what happened.\nThe world only sees `,_jsx(_components.em,{children:`someone`}),` sent a transaction that nullified `,_jsx(_components.em,{children:`some encrypted notes`}),` and created `,_jsx(_components.em,{children:`some new encrypted notes`}),`.\nThis is achieved through client-side execution and proving inside the Aztec `,_jsx(_components.a,{href:`https://docs.aztec.network/developers/docs/foundational-topics/pxe`,children:`PXE`}),`.`]}),`\n`,_jsx(_components.p,{children:`Aztec also supports public functions and state, which is fully transparent and works a lot like the EVM, so we won’t go into details here.`}),`\n`,_jsx(Heading,{level:`2`,id:`backend`,children:`Backend`}),`\n`,_jsxs(_components.p,{children:[`The Nyx backend exists to help users manage and sync their account secret across devices, among other offchain state that are needed to operate their Nyx account.\nIt does this while remaining `,_jsx(_components.em,{children:`completely agnostic`}),` to any sensitive user data.\nIn particular, it never sees any of the following user data:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Public account address.`}),`\n`,_jsx(_components.li,{children:`Private account address.`}),`\n`,_jsx(_components.li,{children:`Private account state.`}),`\n`,_jsx(_components.li,{children:`Account secret.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`This is achieved through a combination of zero-knowledge proofs and end-to-end encryption, which we’ll explore more below.`}),`\n`,_jsx(Heading,{level:`3`,id:`wallet-id`,children:`Wallet ID`}),`\n`,_jsxs(_components.p,{children:[`To maintain offchain state for Nyx users, every connected account is associated with a Nyx wallet ID, which is the `,_jsx(_components.a,{href:`https://www.poseidon-hash.info/`,children:`Poseidon hash`}),` of the connected account address.\nBy nature of the hash function, the Nyx backend cannot deduce the actual connected account address from this wallet ID.`]}),`\n`,_jsx(Heading,{level:`3`,id:`ownership-proof`,children:`Ownership proof`}),`\n`,_jsx(_components.p,{children:`In order to access data belonging to a Nyx wallet ID, the user needs to first authenticate with the Nyx backend.\nThis involves signing a one-time message using their connected Ethereum wallet, which proves ownership of the connected account and thus its derived Nyx wallet ID.\nHowever, instead of directly sending over the signature, which would leak the user’s connected account address to the Nyx backend, a zero-knowledge proof is generated.\nThis proof proves the existence of the valid signature and links it to the Nyx wallet ID, without leaking the actual signature nor the address.`}),`\n`,_jsx(Heading,{level:`3`,id:`wallet-encryption-key`,children:`Wallet encryption key`}),`\n`,_jsx(_components.p,{children:`Each Nyx wallet has an associated encryption key, which is used to encrypt any sensitive data before they leave the user’s device.\nThis includes the account secret, the contact book, and any other data that are required for Nyx operations but may leak the user’s private account state or activities.\nThe Nyx backend will only ever see the ciphertexts of such data.`}),`\n`,_jsx(_components.p,{children:`The wallet encryption key is generated on the client side when provisioning the user’s private account for the first time, and never leaves the user’s device in plaintext.`}),`\n`,_jsx(Heading,{level:`3`,id:`webauthn-credentials`,children:`WebAuthn credentials`}),`\n`,_jsxs(_components.p,{children:[`During the provisioning of a Nyx private account, the user must also enroll a `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/WebAuthn`,children:`WebAuthn credential`}),`, or `,_jsx(_components.em,{children:`passkey`}),`, which is used to encrypt the wallet encryption key before the ciphertext is sent to the Nyx backend for backup.\nNyx requires passkeys that support the `,_jsx(_components.a,{href:`https://github.com/w3c/webauthn/blob/main/explainers/prf-extension.md`,children:`PRF extension`}),`, which includes many popular providers such as`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`YubiKey`}),`\n`,_jsx(_components.li,{children:`Ledger Security Key app`}),`\n`,_jsx(_components.li,{children:`Apple Passwords`}),`\n`,_jsx(_components.li,{children:`Google Password Manager`}),`\n`,_jsx(_components.li,{children:`1Password`}),`\n`,_jsx(_components.li,{children:`…`}),`\n`]}),`\n`,_jsx(_components.p,{children:`The key material is derived from the PRF evaluation result of the passkey, which is never persisted nor transmitted.\nThus the same passkey must be present for decrypting its encrypted data.`}),`\n`,_jsx(_components.p,{children:`Nyx supports enrolling multiple passkeys for redundancy.\nEach passkey is used to encrypt the same wallet encryption key.\nAny one of them can be used to decrypt the wallet encryption key, and thus unlock the account.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Users are strongly encouraged to enroll multiple passkeys to ensure continued\naccess to their Nyx private account in case of a passkey loss, because the Nyx\nteam has no way of recovering it.`})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Because Ledger Security Key app is a supported passkey option, Ledger users\ncan choose to consolidate all of their Nyx account access control on a single\nLedger device (recoverable from a single seed phrase).`})}),`\n`,_jsx(Heading,{level:`2`,id:`sample-access-flows`,children:`Sample access flows`}),`\n`,_jsx(_components.p,{children:`We include some sample flows to help illustrate how the various pieces fit together when accessing a Nyx private account.`}),`\n`,_jsx(Heading,{level:`3`,id:`unlock-private-account`,children:`Unlock private account`}),`\n`,_jsxs(_components.p,{children:[`The goal of `,_jsx(_components.em,{children:`unlocking`}),` the private account is to gather all necessary information for Aztec PXE, running inside the Nyx frontend, to be able to read their private state, and to execute and prove transactions from the user’s private account.`]}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n actor U as User\n participant FE as Nyx frontend\n participant PXE as Aztec PXE\u003cbr/>(in Nyx frontend)\n participant W as Ethereum wallet\n participant K as WebAuthn credential\n participant BE as Nyx backend\n\n U->>+FE: connectWallet()\n FE->>+W: connect()\n W-->>-FE: connectedAccountAddress\n FE->>FE: deriveWalletId(connectedAccountAddress)\n deactivate FE\n\n U->>+FE: unlockPrivateAccount()\n FE->>+BE: createSession()\n BE-->>-FE: challenge\n FE->>+W: signTypedData(walletId, challenge)\n W-->>-FE: signature\n FE->>FE: proveOwnership(walletId, signature)\n FE->>+BE: login(walletId, ownershipProof)\n BE-->>-FE: encryptedWalletKey, encryptedAccountSecret, credIds\n FE->>+K: authenticate(credIds)\n K-->>-FE: authResponse, prfResult\n FE->>+BE: verifyCredential(authResponse)\n BE-->>-FE: encryptedCredKey\n FE->>FE: decryptWalletKey(encryptedWalletKey, encryptedCredKey, prfResult)\n FE->>FE: decryptAccountSecret(encryptedAccountSecret, walletKey)\n FE->>+PXE: registerAccount(accountSecret, connectedAccountAddress)\n deactivate PXE\n deactivate FE`}),`\n`,_jsx(Heading,{level:`3`,id:`send-private-transaction`,children:`Send private transaction`}),`\n`,_jsx(_components.p,{children:`Once the private account has been unlocked, each transaction from it requires sign-off from the user’s connected Ethereum wallet just like transactions from their connected Ethereum account.`}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n actor U as User\n participant FE as Nyx frontend\n participant PXE as Aztec PXE\u003cbr/>(in Nyx frontend)\n participant N as Aztec Node\n participant W as Ethereum wallet\n\n U->>+FE: sendPrivateTx(tx)\n FE->>+W: signTypedData(tx)\n W-->>-FE: signature\n FE->>+PXE: sendTx(tx, signature)\n PXE->>PXE: proveTx(tx, signature)\n PXE->>+N: sendTx(txEffects, txProof)\n N-->>-PXE: txReceipt\n PXE-->>-FE: txReceipt\n deactivate FE`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Account overview","description":"How Nyx accounts are governed and their privacy.","hideFooterPagination":true,"href":"/technical-docs/account-overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Connected account","slug":"connected-account","depth":2,"children":[]},{"title":"Private account","slug":"private-account","depth":2,"children":[{"title":"Account governance","slug":"account-governance","depth":3,"children":[]},{"title":"Privacy","slug":"privacy","depth":3,"children":[]}]},{"title":"Backend","slug":"backend","depth":2,"children":[{"title":"Wallet ID","slug":"wallet-id","depth":3,"children":[]},{"title":"Ownership proof","slug":"ownership-proof","depth":3,"children":[]},{"title":"Wallet encryption key","slug":"wallet-encryption-key","depth":3,"children":[]},{"title":"WebAuthn credentials","slug":"webauthn-credentials","depth":3,"children":[]}]},{"title":"Sample access flows","slug":"sample-access-flows","depth":2,"children":[{"title":"Unlock private account","slug":"unlock-private-account","depth":3,"children":[]},{"title":"Send private transaction","slug":"send-private-transaction","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"nyx","siteName":"Nyx Documentation","title":"Account overview - Nyx Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T17:33:30.249Z","originalFileLocation":"technical-docs/account-overview.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How Nyx accounts are governed and their privacy.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nyx Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Account overview - Nyx Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"How Nyx accounts are governed and their privacy.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"nyx.money docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.nyx.money/technical-docs/account-overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nyx.mintlify.site/images/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Account overview - Nyx Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How Nyx accounts are governed and their privacy.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nyx.mintlify.site/images/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nyx/REJJpKVoZWJCakrv/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nyx Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#A855F7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.nyx.money/technical-docs/account-overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/technical-docs/account-overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.nyx.money/#organization\",\"name\":\"Nyx Documentation\",\"url\":\"https://docs.nyx.money\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nyx/kUndHKHXSxV0osBd/logo/dark.svg?fit=max\u0026auto=format\u0026n=kUndHKHXSxV0osBd\u0026q=85\u0026s=d2bfb08c69926f32fd3539c9d51419dd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.nyx.money#website\",\"name\":\"Nyx Documentation\",\"url\":\"https://docs.nyx.money\",\"publisher\":{\"@id\":\"https://docs.nyx.money/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.nyx.money/technical-docs/account-overview#webpage\",\"url\":\"https://docs.nyx.money/technical-docs/account-overview\",\"name\":\"Account overview\",\"description\":\"How Nyx accounts are governed and their privacy.\",\"dateModified\":\"2026-11-03T17:33:30.249Z\",\"isPartOf\":{\"@id\":\"https://docs.nyx.money#website\"}},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.nyx.money/technical-docs/account-overview#article\",\"headline\":\"Account overview\",\"name\":\"Account overview\",\"description\":\"How Nyx accounts are governed and their privacy.\",\"url\":\"https://docs.nyx.money/technical-docs/account-overview\",\"mainEntityOfPage\":{\"@id\":\"https://docs.nyx.money/technical-docs/account-overview#webpage\"},\"image\":\"https://docs.nyx.money/images/og-image.png\",\"dateModified\":\"2026-11-03T17:33:30.249Z\",\"publisher\":{\"@id\":\"https://docs.nyx.money/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.nyx.money#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nyx Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Nyx Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/technical-docs/account-overview.md","siteName":"Nyx Documentation","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"Help center","pages":[{"title":"Help center","href":"/help-center/overview"}]},{"tab":"Technical docs","pages":[{"title":"Overview","description":null,"href":"/technical-docs/overview"},{"title":"Account overview","href":"/technical-docs/account-overview"},{"title":"Transaction authorization","description":"How transactions are authorized from Nyx private accounts.","href":"/technical-docs/transaction-authorization"},{"title":"Nyx smart contracts","href":"/technical-docs/smart-contracts"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Account overview - Nyx Documentation","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":[],"chunks":[]}