How one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.
A shielded wallet in Fluton has one secret, the spend key. Everything else (the address other users pay, the key that decrypts your notes, the key that tells you which of them are spent) is derived from it, one way, so that each piece can be handed out without handing out the ability to spend.
Spend key
Nothing stores a random spend key per browser. Instead your wallet signs one fixed, domain-bound message (EIP-191 personal_sign), and the signature is hashed into the key:
spendKey = keccak256("fluton-spend-key" || signature)[1..32) (31 bytes, always below the field prime)
ECDSA in Ethereum wallets uses RFC 6979 deterministic nonces, so the same account always produces the same signature bytes, and therefore the same spend key on every device. There is nothing to back up beyond the wallet itself. The signature never touches the chain and the derivation is one-way, so nothing on-chain links your shielded address to the wallet that signed.The message names the chain and the pool it is for, and spells out what signing it does:
Fluton - shielded spend keySigning this message derives the SECRET key that controls your shielded balance anddecrypts your private payment history. Only sign it inside the Fluton app.Chain ID: <chain id>Pool: 0x…
A different chain or a different pool address yields an unrelated key. In the SDK this is one call, and one wallet prompt:
const spendKey = await deriveSpendKey(walletClient, { chainId, pool });
Anyone who can obtain that signature (through phishing, or a compromised wallet) owns the
shielded funds and can decrypt the whole note history. Only sign it in the app you mean to use.
Pasting a raw key stays available as a fallback. It behaves the same afterwards; it is simply not reproducible from a signature.
Shielded address
To be paid privately, you hand out a shielded address. It carries two public values: your Poseidon spend public key, which outputs are created for, and an x25519 public key, which note ciphertexts are encrypted to. The x25519 keypair is derived deterministically from the spend key, so the single secret recovers everything.
pp-addr:<spendPubHex>:<encPubHex>
That is all a payer needs. The recipient of a private transfer never touches the chain, never needs gas, and never appears in the calldata.
View key
The spend key is split in two, so read-only access is possible without any ability to move funds. Two derived secrets do the reading:
nullifierKey is Poseidon(spendKey, NULLIFIER_KEY_DOMAIN), one-way. It computes each note’s nullifier, so its holder can ask the pool which notes are spent and derive the true balance.
the x25519 encryption secret is also one-way from the spend key. It decrypts every note ever sent to the address, yielding (amount, blinding, asset), which together with the spend public key reconstructs each commitment and finds its leaf.
Handing out those two plus the spend public key is a view key:
A view key watches exactly the same shielded address as the spend key it came from, and it is enough to run a full scan. What it shows an auditor, an accountant, a server tracking incoming payments, or a watch-only wallet on a device you do not trust:
A view key shows
A view key does not show
Every note ever sent to the address, of every token
The spend key, which neither derived value yields
Which notes are spent, so the real balance
The recipient of an outgoing payment
The full history: deposits, received payments, change
The amount of an outgoing payment, beyond the change that came back
Neither derived value yields the spend key, and a transaction proof needs the spend key itself, so a view-key holder cannot move funds: the SDK refuses to build transaction inputs for a watch-only keypair rather than producing an unprovable witness. An outgoing viewing key, which would reveal where your payments went, is not implemented.
A view key is a secret, even though it cannot spend. It reveals your entire balance and payment
history to whoever holds it, and it cannot be rotated without moving your notes to a new spend
key.
The web wallet can reveal a view key for the current wallet and can open a pasted one in watch-only mode; see using the wallet. The SDK side (deriving keys, encoding addresses and scanning with either kind of key) is keys and scanning, and what a scan can and cannot see from the chain alone is in what stays public.
⌘I
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Fluton","description":"Documentation for Fluton: private deposits, withdrawals and transfers in Fluton on Arbitrum One, the wallet, the SDK and the relayer.","colors":{"primary":"#2B63D9","light":"#2B63D9","dark":"#2B63D9"},"logo":{"light":"https://mintcdn.com/fluton-8700935a/OGgGqdFP8gjrlAHJ/logo/light.svg?fit=max\u0026auto=format\u0026n=OGgGqdFP8gjrlAHJ\u0026q=85\u0026s=2a960ab0b37a3ec771585a64cfd7cf76","dark":"https://mintcdn.com/fluton-8700935a/OGgGqdFP8gjrlAHJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=OGgGqdFP8gjrlAHJ\u0026q=85\u0026s=939033f0a8e5247b28152d6786291ce6"},"favicon":"https://mintcdn.com/fluton-8700935a/OGgGqdFP8gjrlAHJ/favicon-dark.png?fit=max\u0026auto=format\u0026n=OGgGqdFP8gjrlAHJ\u0026q=85\u0026s=f5c5be5ef265c14ef4fa3517295ee0bd","footer":{"socials":{"x":"https://x.com/FlutonIO","github":"https://github.com/Fluton-io","discord":"https://discord.gg/fluton"}},"fonts":{"family":"Nunito"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"background":{"color":{"light":"#f9fafe","dark":"#0a0c11"}},"navigation":{"global":{"anchors":[{"anchor":"App","icon":"wallet","href":"https://app.fluton.io"},{"anchor":"Website","icon":"globe","href":"https://fluton.io"},{"anchor":"Blog","icon":"newspaper","href":"https://fluton.io/blog"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/fluton"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fluton-8700935a","hasAudioNarration":false,"actualSubdomain":"fluton-8700935a","customDomains":["docs.fluton.io"],"gitSource":{"type":"github","owner":"fluton-io","repo":"fluton","deployBranch":"mainnet","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6ae35653ded2f20fe6491a59"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aff78769c99df719667b84b","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Concepts","count":8},{"language":"default","tag":"SDK","count":5},{"language":"default","tag":"Reference","count":3},{"language":"default","tag":"Getting started","count":2},{"language":"default","tag":"Wallet","count":2},{"language":"default","tag":"Relayer","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"site-roles","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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"concepts/keys-and-view-keys","slug":"/concepts/keys-and-view-keys","pageMetadata":{"title":"Keys and view keys","description":"How one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.","href":"/concepts/keys-and-view-keys"},"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 one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.\"\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`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A shielded wallet in Fluton has one secret, the `,_jsx(_components.strong,{children:`spend key`}),`. Everything else (the address other users pay, the key that decrypts your notes, the key that tells you which of them are spent) is derived from it, one way, so that each piece can be handed out without handing out the ability to spend.`]}),`\n`,_jsx(Heading,{level:`2`,id:`spend-key`,children:`Spend key`}),`\n`,_jsxs(_components.p,{children:[`Nothing stores a random spend key per browser. Instead your wallet signs one fixed, domain-bound message (EIP-191 `,_jsx(_components.code,{children:`personal_sign`}),`), and the signature is hashed into the key:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`spendKey = keccak256(\"fluton-spend-key\" || signature)[1..32) (31 bytes, always below the field prime)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`ECDSA in Ethereum wallets uses RFC 6979 deterministic nonces, so the same account always produces the same signature bytes, and therefore the same spend key on every device. There is nothing to back up beyond the wallet itself. The signature never touches the chain and the derivation is one-way, so nothing on-chain links your shielded address to the wallet that signed.`}),`\n`,_jsx(_components.p,{children:`The message names the chain and the pool it is for, and spells out what signing it does:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Fluton - shielded spend key`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Signing this message derives the SECRET key that controls your shielded balance and`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`decrypts your private payment history. Only sign it inside the Fluton app.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Chain ID: \u003cchain id>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Pool: 0x…`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`A different chain or a different pool address yields an unrelated key. In the SDK this is one call, and one wallet prompt:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` spendKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` deriveSpendKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`walletClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chainId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pool`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Anyone who can obtain that signature (through phishing, or a compromised wallet) owns the\nshielded funds and can decrypt the whole note history. Only sign it in the app you mean to use.`})}),`\n`,_jsx(_components.p,{children:`Pasting a raw key stays available as a fallback. It behaves the same afterwards; it is simply not reproducible from a signature.`}),`\n`,_jsx(Heading,{level:`2`,id:`shielded-address`,children:`Shielded address`}),`\n`,_jsxs(_components.p,{children:[`To be paid privately, you hand out a shielded address. It carries two public values: your Poseidon `,_jsx(_components.strong,{children:`spend public key`}),`, which outputs are created for, and an `,_jsx(_components.strong,{children:`x25519`}),` public key, which note ciphertexts are encrypted to. The x25519 keypair is derived deterministically from the spend key, so the single secret recovers everything.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`pp-addr:\u003cspendPubHex>:\u003cencPubHex>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`That is all a payer needs. The recipient of a `,_jsx(_components.a,{href:`/concepts/private-transfers`,children:`private transfer`}),` never touches the chain, never needs gas, and never appears in the calldata.`]}),`\n`,_jsx(Heading,{level:`2`,id:`view-key`,children:`View key`}),`\n`,_jsx(_components.p,{children:`The spend key is split in two, so read-only access is possible without any ability to move funds. Two derived secrets do the reading:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`nullifierKey`}),` is `,_jsx(_components.code,{children:`Poseidon(spendKey, NULLIFIER_KEY_DOMAIN)`}),`, one-way. It computes each note’s nullifier, so its holder can ask the pool which notes are spent and derive the true balance.`]}),`\n`,_jsxs(_components.li,{children:[`the x25519 encryption secret is also one-way from the spend key. It decrypts every note ever sent to the address, yielding `,_jsx(_components.code,{children:`(amount, blinding, asset)`}),`, which together with the spend public key reconstructs each commitment and finds its leaf.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Handing out those two plus the spend public key is a `,_jsx(_components.strong,{children:`view key`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`pp-view:\u003cspendPubHex>:\u003cnullifierKeyHex>:\u003cencSecretHex>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` view`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` viewKeyFromSpendKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`spendKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A view key watches exactly the same shielded address as the spend key it came from, and it is enough to run a full scan. What it shows an auditor, an accountant, a server tracking incoming payments, or a `,_jsx(_components.strong,{children:`watch-only`}),` wallet on a device you do not trust:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`A view key shows`}),_jsx(_components.th,{children:`A view key does not show`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Every note ever sent to the address, of every token`}),_jsx(_components.td,{children:`The spend key, which neither derived value yields`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Which notes are spent, so the real balance`}),_jsx(_components.td,{children:`The recipient of an outgoing payment`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The full history: deposits, received payments, change`}),_jsx(_components.td,{children:`The amount of an outgoing payment, beyond the change that came back`})]})]})]}),`\n`,_jsx(_components.p,{children:`Neither derived value yields the spend key, and a transaction proof needs the spend key itself, so a view-key holder cannot move funds: the SDK refuses to build transaction inputs for a watch-only keypair rather than producing an unprovable witness. An outgoing viewing key, which would reveal where your payments went, is not implemented.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`A view key is a secret, even though it cannot spend. It reveals your entire balance and payment\nhistory to whoever holds it, and it cannot be rotated without moving your notes to a new spend\nkey.`})}),`\n`,_jsxs(_components.p,{children:[`The web wallet can reveal a view key for the current wallet and can open a pasted one in watch-only mode; see `,_jsx(_components.a,{href:`/wallet/using-the-wallet`,children:`using the wallet`}),`. The SDK side (deriving keys, encoding addresses and scanning with either kind of key) is `,_jsx(_components.a,{href:`/sdk/keys-and-scanning`,children:`keys and scanning`}),`, and what a scan can and cannot see from the chain alone is in `,_jsx(_components.a,{href:`/concepts/privacy-model`,children:`what stays public`}),`.`]})]})}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":"Keys and view keys","description":"How one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.","href":"/concepts/keys-and-view-keys"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Spend key","slug":"spend-key","depth":2,"children":[]},{"title":"Shielded address","slug":"shielded-address","depth":2,"children":[]},{"title":"View key","slug":"view-key","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"fluton-8700935a","siteName":"Fluton","title":"Keys and view keys - Fluton","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T18:24:13.902Z","originalFileLocation":"concepts/keys-and-view-keys.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=\"system\"}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 one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Fluton\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fluton-8700935a/TMdgEj3ON59i8vvt/_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/fluton-8700935a/TMdgEj3ON59i8vvt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fluton-8700935a/TMdgEj3ON59i8vvt/_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/fluton-8700935a/TMdgEj3ON59i8vvt/_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/fluton-8700935a/TMdgEj3ON59i8vvt/_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/fluton-8700935a/TMdgEj3ON59i8vvt/_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/fluton-8700935a/TMdgEj3ON59i8vvt/_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/fluton-8700935a/TMdgEj3ON59i8vvt/_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/fluton-8700935a/TMdgEj3ON59i8vvt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Keys and view keys - Fluton\">\u003cmeta data-mint-head property=\"og:description\" content=\"How one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fluton\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fluton.io/concepts/keys-and-view-keys\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fluton-8700935a.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=Keys+and+view+keys\u0026amp;description=How+one+wallet+signature+becomes+a+spend+key%2C+what+a+shielded+address+and+a+view+key+contain%2C+and+exactly+what+read-only+access+does+and+does+not+reveal.\u0026amp;theme=38eb1f8d33217ba8a9dc88a9\u0026amp;signature=120d904c869456b2f803ed58a7d4fc2ff000bec568007f039ca9abd1810ab712\">\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=\"Keys and view keys - Fluton\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fluton-8700935a.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=Keys+and+view+keys\u0026amp;description=How+one+wallet+signature+becomes+a+spend+key%2C+what+a+shielded+address+and+a+view+key+contain%2C+and+exactly+what+read-only+access+does+and+does+not+reveal.\u0026amp;theme=38eb1f8d33217ba8a9dc88a9\u0026amp;signature=120d904c869456b2f803ed58a7d4fc2ff000bec568007f039ca9abd1810ab712\">\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/fluton-8700935a/TMdgEj3ON59i8vvt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Fluton\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2B63D9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fluton.io/concepts/keys-and-view-keys\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/keys-and-view-keys.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fluton.io/#organization\",\"name\":\"Fluton\",\"url\":\"https://docs.fluton.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fluton-8700935a/OGgGqdFP8gjrlAHJ/logo/light.svg?fit=max\u0026auto=format\u0026n=OGgGqdFP8gjrlAHJ\u0026q=85\u0026s=2a960ab0b37a3ec771585a64cfd7cf76\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fluton.io#website\",\"name\":\"Fluton\",\"url\":\"https://docs.fluton.io\",\"publisher\":{\"@id\":\"https://docs.fluton.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fluton.io/concepts/keys-and-view-keys#webpage\",\"url\":\"https://docs.fluton.io/concepts/keys-and-view-keys\",\"name\":\"Keys and view keys\",\"description\":\"How one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.\",\"dateModified\":\"2026-11-16T18:24:13.902Z\",\"isPartOf\":{\"@id\":\"https://docs.fluton.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fluton.io/concepts/keys-and-view-keys#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fluton.io/concepts/keys-and-view-keys#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Concepts\",\"item\":\"https://docs.fluton.io/concepts/notes-and-proofs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Keys and view keys\",\"item\":\"https://docs.fluton.io/concepts/keys-and-view-keys\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.fluton.io/concepts/keys-and-view-keys#article\",\"headline\":\"Keys and view keys\",\"name\":\"Keys and view keys\",\"description\":\"How one wallet signature becomes a spend key, what a shielded address and a view key contain, and exactly what read-only access does and does not reveal.\",\"url\":\"https://docs.fluton.io/concepts/keys-and-view-keys\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fluton.io/concepts/keys-and-view-keys#webpage\"},\"dateModified\":\"2026-11-16T18:24:13.902Z\",\"publisher\":{\"@id\":\"https://docs.fluton.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fluton.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Fluton\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Fluton\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/keys-and-view-keys.md","siteName":"Fluton","nav":{"global":{"anchors":[{"anchor":"App","icon":"wallet","href":"https://app.fluton.io"},{"anchor":"Website","icon":"globe","href":"https://fluton.io"},{"anchor":"Blog","icon":"newspaper","href":"https://fluton.io/blog"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/fluton"}]},"groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/index"},{"title":"Confidential architecture","href":"/confidential-architecture"}]},{"group":"Concepts","pages":[{"title":"Notes and proofs","href":"/concepts/notes-and-proofs"},{"title":"Private transfers","href":"/concepts/private-transfers"},{"title":"Many tokens, one pool","href":"/concepts/multi-token"},{"title":"TOKEN and eTOKEN","href":"/concepts/token-formats"},{"title":"Fees and referrals","href":"/concepts/fees"},{"title":"Deposit screening","description":"Why every deposit into the pool carries a signed screening of the depositor, how one is obtained and checked, and what happens when screening is unavailable.","href":"/concepts/deposit-screening"},{"title":"Keys and view keys","href":"/concepts/keys-and-view-keys"},{"title":"What stays public","description":"Operation by operation, what Fluton reveals on-chain and to whom, what it hides, and the known limits of the anonymity it offers.","href":"/concepts/privacy-model"}]},{"group":"Wallet","pages":[{"title":"Using the wallet","href":"/wallet/using-the-wallet"},{"title":"Invite and referrals","href":"/wallet/invite-and-referrals"}]},{"group":"SDK","pages":[{"title":"SDK overview","href":"/sdk/overview"},{"title":"Keys, notes and scanning","href":"/sdk/keys-and-scanning"},{"title":"Deposits, withdrawals and transfers","href":"/sdk/transactions"},{"title":"Pool client reference","href":"/sdk/reference"},{"title":"Intent client (planned)","href":"/sdk/intent-client"}]},{"group":"Relayer","pages":[{"title":"Running a relayer","href":"/operators/relayer"}]},{"group":"Reference","pages":[{"title":"Contracts","href":"/reference/contracts"},{"title":"Circuits","href":"/reference/circuits"},{"title":"Deployments","href":"/reference/deployments"}]}]},"basePath":"","title":"Keys and view keys - Fluton","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}