Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.
TypeScript is structurally typed: two aliases for Uint8Array or `0x${string}` are completely interchangeable. Voltaire attaches a phantom unique symbol brand to every primitive so the compiler rejects mixing an Address with a Hash, Bytecode, or Wei with Gwei — while emitting plain Uint8Array or bigint at runtime.
How Branding Works
All primitives share a single unique symbol exported from @tevm/voltaire:
The brand property never exists on the object at runtime. Because AddressType and HashType carry distinct literal tags under [brand], TypeScript rejects swapped arguments:
import { Address, Hash } from '@tevm/voltaire';import type { AddressType } from '@tevm/voltaire/Address';import type { HashType } from '@tevm/voltaire/Hash';function recordTransfer(to: AddressType, txHash: HashType) { // Both arguments are already validated — no defensive re-parsing needed.}const addr = Address('0x742d35Cc6634C0532925a3b844Bc9e7595f51e3e');const hash = Hash('0x' + 'ab'.repeat(32));recordTransfer(addr, hash); // OK// recordTransfer(hash, addr); // Compile error: HashType is not assignable to AddressType
Validate Once at the Boundary
Every constructor validates length, character set, and range immediately. If a value has type AddressType, it is guaranteed to be exactly 20 bytes:
Never cast raw strings or Uint8Array with as AddressType — doing so bypasses construction-time validation and breaks the invariant that every branded value is valid. Always construct through Address(...) or Address.fromBytes(...).
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Voltaire","colors":{"primary":"#10B981","light":"#34D399","dark":"#059669"},"logo":{"light":"https://mintcdn.com/tevm/YrHiDehri69PtRdL/logo-light.png?fit=max\u0026auto=format\u0026n=YrHiDehri69PtRdL\u0026q=85\u0026s=e95a5d32dd74826fc038b77937ff5e69","dark":"https://mintcdn.com/tevm/YrHiDehri69PtRdL/logo-dark.png?fit=max\u0026auto=format\u0026n=YrHiDehri69PtRdL\u0026q=85\u0026s=8e5fd316a145e60acd03a9c0fa6678da","href":"https://voltaire.tevm.sh"},"favicon":"https://mintcdn.com/tevm/YrHiDehri69PtRdL/favicon.png?fit=max\u0026auto=format\u0026n=YrHiDehri69PtRdL\u0026q=85\u0026s=f6e4b50db700be35556c5260f6a97b7f","background":{"color":{"light":"#FDF2E2","dark":"#0a0a0a"}},"navbar":{"links":[{"href":"https://github.com/evmts/voltaire","label":"GitHub"}],"primary":{"type":"button","label":"Get Started","href":"https://voltaire.tevm.sh/getting-started"}},"footer":{"socials":{"github":"https://github.com/evmts/voltaire","twitter":"https://twitter.com/tevmtools"}},"search":{"prompt":"Search Voltaire docs..."},"contextual":{"options":["copy","view","claude","chatgpt","cursor","vscode","mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/evmts/voltaire"},{"anchor":"Twitter","icon":"twitter","href":"https://twitter.com/tevmtools"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tevm","hasAudioNarration":false,"actualSubdomain":"tevm","customDomains":["voltaire.tevm.sh"],"gitSource":{"type":"github","owner":"evmts","repo":"voltaire","deployBranch":"main","contentDirectory":"packages/voltaire-ts/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b055ba4371c191c3d4c3c32","clientVersion":"0.0.4324","searchFilterCounts":[{"language":"default","tag":"API Reference","count":581},{"language":"default","tag":"Primitives","count":287},{"language":"default","tag":"Generated API (TypeDoc)","count":239},{"language":"default","tag":"EVM","count":198},{"language":"default","tag":"Instructions","count":159},{"language":"default","tag":"Guides \u0026 Skills","count":115},{"language":"default","tag":"Stack","count":67},{"language":"default","tag":"Skills","count":51},{"language":"default","tag":"Index Namespaces","count":49},{"language":"default","tag":"Identity, Standards \u0026 Protocol","count":48}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":true,"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":"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":"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":"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":"turbopuffer-dual-write","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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"starterQuestions":[{"_id":"6955129287826b5efbdb3995","deploymentId":"69550d3f87826b5efbdb09a0","questionText":"How do I generate an address checksum","status":"active","generatedBy":"manual","createdAt":"2025-12-31T12:09:54.706Z","updatedAt":"2025-12-31T12:09:54.706Z","__v":0},{"_id":"6955128587826b5efbdb395d","deploymentId":"69550d3f87826b5efbdb09a0","questionText":"How do I configure a signer to sign a eip-1559 transaction","status":"active","generatedBy":"manual","createdAt":"2025-12-31T12:09:41.734Z","updatedAt":"2025-12-31T12:09:41.734Z","__v":0},{"_id":"6955127487826b5efbdb3905","deploymentId":"69550d3f87826b5efbdb09a0","questionText":"How do I read balance from an ERC20 contract","status":"active","generatedBy":"manual","createdAt":"2025-12-31T12:09:24.474Z","updatedAt":"2025-12-31T12:09:24.474Z","__v":0}],"googleFontsInlined":false},"customCss":[{"filePath":"public/playground/assets/index-CcVLqkfN.css","href":"/_mintlify/custom/tevm/9e9dbcf184624029/public/playground/assets/index-CcVLqkfN.css"},{"filePath":"style.css","content":".dark #navbar-transition,.dark #navbar>div.absolute,.dark [data-is-opaque]{background-color:#0a0a0a!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.voltaire-hero{text-align:center;padding:3rem 2rem 6rem;max-width:1280px;margin:0 auto}.voltaire-hero pre,.voltaire-hero code,.voltaire-hero [data-component-part=\"code-block-root\"]{text-align:left!important}.voltaire-title{font-size:clamp(3rem, 8vw, 6rem);font-weight:800;line-height:1.1;margin-bottom:1.5rem}.voltaire-gradient-text{display:block;background:linear-gradient(135deg, #E6A23C 0%, #A0522D 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.voltaire-tagline{font-size:clamp(1.2rem, 3vw, 1.5rem);color:#999;max-width:800px;margin:0 auto 3rem;line-height:1.6}#tab-indicator{position:absolute;bottom:-8px;height:2px;background:linear-gradient(90deg, #E6A23C 0%, #A0522D 100%);transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);border-radius:2px}.voltaire-feature-card{display:flex;align-items:center;gap:1rem;padding:1.5rem;border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px;text-decoration:none;transition:all 0.15s ease;cursor:pointer}.voltaire-feature-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(212, 147, 30, 0.2);border-color:rgba(212, 147, 30, 0.3)}.voltaire-btn-primary{display:inline-flex;align-items:center;justify-content:center;padding:0.75rem 2rem;border-radius:8px;text-decoration:none;font-weight:600;background:linear-gradient(135deg, #E6A23C 0%, #A0522D 100%);color:white;transition:all 0.15s ease;border:none}.voltaire-btn-primary:hover{transform:scale(1.02);box-shadow:0 4px 12px rgba(230, 162, 60, 0.3)}.voltaire-btn-secondary{display:inline-flex;align-items:center;justify-content:center;padding:0.75rem 2rem;border-radius:8px;text-decoration:none;font-weight:600;background:transparent;color:currentColor;border:2px solid rgba(128, 128, 128, 0.3);transition:all 0.15s ease}.voltaire-btn-secondary:hover{background:rgba(128, 128, 128, 0.1);border-color:rgba(128, 128, 128, 0.5);transform:scale(1.02)}#console-output{min-height:150px;max-height:300px;overflow-y:auto;background:#1e1e1e;border:1px solid rgba(255, 255, 255, 0.1);border-top:none;border-radius:0 0 12px 12px;padding:1rem;font-family:'Menlo', Monaco, 'Courier New', monospace;font-size:0.875rem;line-height:1.6;color:#d4d4d4;word-wrap:break-word;white-space:pre-wrap}#editor-container{width:100%;height:600px;border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px 12px 0 0;overflow:hidden;position:relative}"}]}
{"page":{"pagePath":"concepts/branded-types","slug":"/concepts/branded-types","pageMetadata":{"title":"Branded Types","description":"Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.","href":"/concepts/branded-types"},"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: \"Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.\"\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`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`TypeScript is structurally typed: two aliases for `,_jsx(_components.code,{children:`Uint8Array`}),` or `,_jsx(_components.code,{children:\"`0x${string}`\"}),` are completely interchangeable. Voltaire attaches a phantom `,_jsx(_components.code,{children:`unique symbol`}),` brand to every primitive so the compiler rejects mixing an `,_jsx(_components.code,{children:`Address`}),` with a `,_jsx(_components.code,{children:`Hash`}),`, `,_jsx(_components.code,{children:`Bytecode`}),`, or `,_jsx(_components.code,{children:`Wei`}),` with `,_jsx(_components.code,{children:`Gwei`}),` — while emitting plain `,_jsx(_components.code,{children:`Uint8Array`}),` or `,_jsx(_components.code,{children:`bigint`}),` at runtime.`]}),`\n`,_jsx(Mermaid,{chart:`flowchart LR\n Input[\"Untrusted Input\\\\n(string | Uint8Array | bigint)\"] -->|\"Validate once\\\\nat construction\"| Brand[\"Branded Value\\\\nUint8Array \u0026 { readonly [brand]: 'Address' }\"]\n Brand -->|\"Compile time\"| TS[\"Distinct Nominal Type\\\\nAddressType ≠ HashType ≠ BytecodeType\"]\n Brand -->|\"Runtime\"| RT[\"Plain Uint8Array (20B)\\\\nZero wrapper object, zero GC cost\"]`}),`\n`,_jsx(Heading,{level:`2`,id:`how-branding-works`,children:`How Branding Works`}),`\n`,_jsxs(_components.p,{children:[`All primitives share a single `,_jsx(_components.code,{children:`unique symbol`}),` exported from `,_jsx(_components.code,{children:`@tevm/voltaire`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`declare`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` brand`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` unique`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` symbol`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AddressType`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Uint8Array`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`readonly`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`brand`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Address'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` HashType`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Uint8Array`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`readonly`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`brand`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Hash'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` WeiType`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` bigint`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`readonly`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`brand`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Wei'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` GweiType`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` bigint`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`readonly`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`brand`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Gwei'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The brand property never exists on the object at runtime. Because `,_jsx(_components.code,{children:`AddressType`}),` and `,_jsx(_components.code,{children:`HashType`}),` carry distinct literal tags under `,_jsx(_components.code,{children:`[brand]`}),`, TypeScript rejects swapped arguments:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,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:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Hash`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@tevm/voltaire'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AddressType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@tevm/voltaire/Address'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`HashType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@tevm/voltaire/Hash'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` recordTransfer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`to`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AddressType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`txHash`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` HashType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Both arguments are already validated — no defensive re-parsing needed.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_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:` addr`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0x742d35Cc6634C0532925a3b844Bc9e7595f51e3e'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_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:` hash`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Hash`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0x'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ab'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`repeat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`32`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`recordTransfer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`addr`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`hash`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// OK`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// recordTransfer(hash, addr);`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Compile error: HashType is not assignable to AddressType`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`validate-once-at-the-boundary`,children:`Validate Once at the Boundary`}),`\n`,_jsxs(_components.p,{children:[`Every constructor validates length, character set, and range immediately. If a value has type `,_jsx(_components.code,{children:`AddressType`}),`, it is guaranteed to be exactly 20 bytes:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0xnot_valid_hex'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// throws InvalidHexFormatError`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0x1234'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// throws InvalidAddressLengthError`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Uint8Array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// throws InvalidAddressLengthError`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Because `,_jsx(_components.code,{children:`Address`}),` stores 20 raw bytes rather than a string, case-sensitivity bugs disappear:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,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:` lower`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0x742d35cc6634c0532925a3b844bc9e7595f51e3e'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_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:` mixed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0x742d35Cc6634C0532925a3b844Bc9e7595f51e3e'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lower`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`equals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lower`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Uint8Array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lower`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 20`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` DataView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lower`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Direct native Web API interop`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`core-branded-types`,children:`Core Branded Types`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Runtime Backing`}),_jsx(_components.th,{children:`Size`}),_jsx(_components.th,{children:`Module`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AddressType`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Uint8Array`})}),_jsx(_components.td,{children:`20 bytes`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/address`,children:_jsx(_components.code,{children:`Address`})})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`HashType`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Uint8Array`})}),_jsx(_components.td,{children:`32 bytes`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/hash`,children:_jsx(_components.code,{children:`Hash`})})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Bytes32Type`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Uint8Array`})}),_jsx(_components.td,{children:`32 bytes`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/bytes32`,children:_jsx(_components.code,{children:`Bytes32`})})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BytecodeType`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Uint8Array`})}),_jsx(_components.td,{children:`Variable`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/bytecode`,children:_jsx(_components.code,{children:`Bytecode`})})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BlobType`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Uint8Array`})}),_jsx(_components.td,{children:`131,072 bytes (128 KB)`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/blob`,children:_jsx(_components.code,{children:`Blob`})})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`HexType`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`string`}),` (`,_jsx(_components.code,{children:`0x...`}),`)`]}),_jsx(_components.td,{children:`Variable`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/hex`,children:_jsx(_components.code,{children:`Hex`})})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Uint8Type`}),`..`,_jsx(_components.code,{children:`Uint256Type`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`bigint`}),` / `,_jsx(_components.code,{children:`number`})]}),_jsx(_components.td,{children:`1–32 bytes`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/uint`,children:_jsx(_components.code,{children:`Uint`})})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Int8Type`}),`..`,_jsx(_components.code,{children:`Int256Type`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`bigint`}),` / `,_jsx(_components.code,{children:`number`})]}),_jsx(_components.td,{children:`1–32 bytes`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/int256`,children:_jsx(_components.code,{children:`Int256`})})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`WeiType`}),` / `,_jsx(_components.code,{children:`GweiType`}),` / `,_jsx(_components.code,{children:`EtherType`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bigint`})}),_jsx(_components.td,{children:`256-bit`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/primitives/denomination`,children:_jsx(_components.code,{children:`Denomination`})})})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Never cast raw strings or `,_jsx(_components.code,{children:`Uint8Array`}),` with `,_jsx(_components.code,{children:`as AddressType`}),` — doing so bypasses construction-time validation and breaks the invariant that every branded value is valid. Always construct through `,_jsx(_components.code,{children:`Address(...)`}),` or `,_jsx(_components.code,{children:`Address.fromBytes(...)`}),`.`]})})]})}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":"Branded Types","description":"Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.","href":"/concepts/branded-types"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How Branding Works","slug":"how-branding-works","depth":2,"children":[]},{"title":"Validate Once at the Boundary","slug":"validate-once-at-the-boundary","depth":2,"children":[]},{"title":"Core Branded Types","slug":"core-branded-types","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/tevm/4e145ad76c214f9c/public/lib/crypto/Keccak256/Keccak256.js","/_mintlify/custom/tevm/14ce774eadd7d316/public/lib/crypto/Keccak256/constants.js","/_mintlify/custom/tevm/c78683b43791a303/public/lib/crypto/Keccak256/contractAddress.js","/_mintlify/custom/tevm/a2755cf8ee025656/public/lib/crypto/Keccak256/create2Address.js","/_mintlify/custom/tevm/7c8014b0a2e122e1/public/lib/crypto/Keccak256/from.js","/_mintlify/custom/tevm/b51f428a35bae920/public/lib/crypto/Keccak256/hash.js","/_mintlify/custom/tevm/d833ef4bf88082dd/public/lib/crypto/Keccak256/hashHex.js","/_mintlify/custom/tevm/4561e23a4131e73d/public/lib/crypto/Keccak256/hashMultiple.js","/_mintlify/custom/tevm/a11efe8f521461dd/public/lib/crypto/Keccak256/hashString.js","/_mintlify/custom/tevm/d331d98518951922/public/lib/crypto/Keccak256/selector.js","/_mintlify/custom/tevm/1b4b0a027ba4f92e/public/lib/crypto/Keccak256/topic.js","/_mintlify/custom/tevm/08f6c7c9f63bcd09/public/lib/primitives/Address/Address.js","/_mintlify/custom/tevm/b05371bf7292bfd9/public/lib/primitives/Address/Address.wasm.js","/_mintlify/custom/tevm/d39a15610943fce1/public/lib/primitives/Address/AddressType.js","/_mintlify/custom/tevm/d1233406f5ff784e/public/lib/primitives/Address/ChecksumAddress.js","/_mintlify/custom/tevm/3dedbd9749818f0d/public/lib/primitives/Address/LowercaseAddress.js","/_mintlify/custom/tevm/b8c595b749da60d0/public/lib/primitives/Address/UppercaseAddress.js","/_mintlify/custom/tevm/8e6c4a9b7284d14e/public/lib/primitives/Address/calculateCreate2Address.js","/_mintlify/custom/tevm/7c6fd5c90ce56dfd/public/lib/primitives/Address/calculateCreateAddress.js","/_mintlify/custom/tevm/e780740cf5be1dba/public/lib/primitives/Address/clone.js","/_mintlify/custom/tevm/c9670ed7248bad55/public/lib/primitives/Address/compare.js","/_mintlify/custom/tevm/a75a0c3f605e01ed/public/lib/primitives/Address/constants.js","/_mintlify/custom/tevm/44a7a31b5727df26/public/lib/primitives/Address/deduplicateAddresses.js","/_mintlify/custom/tevm/798fa9d830d330e0/public/lib/primitives/Address/equals.js","/_mintlify/custom/tevm/078c2b79fa48f5b1/public/lib/primitives/Address/errors.js","/_mintlify/custom/tevm/990d7f55ebf42495/public/lib/primitives/Address/from.js","/_mintlify/custom/tevm/f62c749d5bc267f2/public/lib/primitives/Address/fromAbiEncoded.js","/_mintlify/custom/tevm/f0ff3c00290591cc/public/lib/primitives/Address/fromBase64.js","/_mintlify/custom/tevm/43c42964e3fa38bd/public/lib/primitives/Address/fromBytes.js","/_mintlify/custom/tevm/e880921296ad270c/public/lib/primitives/Address/fromHex.js","/_mintlify/custom/tevm/088956e96a796586/public/lib/primitives/Address/fromNumber.js","/_mintlify/custom/tevm/b25090e0cf92619f/public/lib/primitives/Address/fromPrivateKey.js","/_mintlify/custom/tevm/fe31bd114f907cb8/public/lib/primitives/Address/fromPublicKey.js","/_mintlify/custom/tevm/b723ad6f5bb31941/public/lib/primitives/Address/greaterThan.js","/_mintlify/custom/tevm/efe97c971990cd18/public/lib/primitives/Address/is.js","/_mintlify/custom/tevm/29d1b9c0e2c25f38/public/lib/primitives/Address/isValid.js","/_mintlify/custom/tevm/f7de4b47090d4ee9/public/lib/primitives/Address/isValidChecksum.js","/_mintlify/custom/tevm/26ac82032c3d1b11/public/lib/primitives/Address/isZero.js","/_mintlify/custom/tevm/46c78e2d1b8d5178/public/lib/primitives/Address/lessThan.js","/_mintlify/custom/tevm/920613da132bc4bd/public/lib/primitives/Address/sortAddresses.js","/_mintlify/custom/tevm/54bb82d88b239f63/public/lib/primitives/Address/toAbiEncoded.js","/_mintlify/custom/tevm/7f32003b7095fff4/public/lib/primitives/Address/toBytes.js","/_mintlify/custom/tevm/822125473e1dd53d/public/lib/primitives/Address/toChecksummed.js","/_mintlify/custom/tevm/7f0fb42af8d550a0/public/lib/primitives/Address/toHex.js","/_mintlify/custom/tevm/8e3e616e0747bb97/public/lib/primitives/Address/toLowercase.js","/_mintlify/custom/tevm/9ca5bbad40435447/public/lib/primitives/Address/toShortHex.js","/_mintlify/custom/tevm/d89bbed65edef45d/public/lib/primitives/Address/toU256.js","/_mintlify/custom/tevm/953aa6509b880b35/public/lib/primitives/Address/toUppercase.js","/_mintlify/custom/tevm/bd29d3c1ebd0a9a7/public/lib/primitives/Address/zero.js","/_mintlify/custom/tevm/6397ec9c30faf9f2/public/lib/primitives/Hex/BrandedHex.js","/_mintlify/custom/tevm/5a503d51eebf6992/public/lib/primitives/Hex/Hex.js","/_mintlify/custom/tevm/6cd2268109f98ccf/public/lib/primitives/Hex/assertSize.js","/_mintlify/custom/tevm/6b29febbc3fb8998/public/lib/primitives/Hex/clone.js","/_mintlify/custom/tevm/2481678ff5623626/public/lib/primitives/Hex/concat.js","/_mintlify/custom/tevm/56d402d68ddda578/public/lib/primitives/Hex/equals.js","/_mintlify/custom/tevm/dfe92b8f9ee42af6/public/lib/primitives/Hex/errors.js","/_mintlify/custom/tevm/a0d6b66550835443/public/lib/primitives/Hex/from.js","/_mintlify/custom/tevm/a3647a1b21e42810/public/lib/primitives/Hex/fromBigInt.js","/_mintlify/custom/tevm/faf2994a9172c032/public/lib/primitives/Hex/fromBoolean.js","/_mintlify/custom/tevm/0db3355f4f7c2c95/public/lib/primitives/Hex/fromBytes.js","/_mintlify/custom/tevm/7111617b8953df10/public/lib/primitives/Hex/fromBytes.test.js","/_mintlify/custom/tevm/31ee588077965cc7/public/lib/primitives/Hex/fromNumber.js","/_mintlify/custom/tevm/fa9827942a3310d3/public/lib/primitives/Hex/fromString.js","/_mintlify/custom/tevm/86f1adfd149ba34b/public/lib/primitives/Hex/index.js","/_mintlify/custom/tevm/e290eb93e25d66d3/public/lib/primitives/Hex/isHex.js","/_mintlify/custom/tevm/edfd361765cd5e76/public/lib/primitives/Hex/isSized.js","/_mintlify/custom/tevm/9011f12763b05840/public/lib/primitives/Hex/pad.js","/_mintlify/custom/tevm/08602a0a45703b06/public/lib/primitives/Hex/padRight.js","/_mintlify/custom/tevm/f98f5cf842246ce5/public/lib/primitives/Hex/padRight.test.js","/_mintlify/custom/tevm/33b175868c59a64d/public/lib/primitives/Hex/random.js","/_mintlify/custom/tevm/2b1775a56ae678a4/public/lib/primitives/Hex/size.js","/_mintlify/custom/tevm/6b373db66241c991/public/lib/primitives/Hex/slice.js","/_mintlify/custom/tevm/5848f895a172ab08/public/lib/primitives/Hex/toBigInt.js","/_mintlify/custom/tevm/1d721ea9a0020a06/public/lib/primitives/Hex/toBoolean.js","/_mintlify/custom/tevm/b9ffb9225e746172/public/lib/primitives/Hex/toBytes.js","/_mintlify/custom/tevm/ef6b1dbb7a456b15/public/lib/primitives/Hex/toBytes.test.js","/_mintlify/custom/tevm/cf4e19cd8ab82e91/public/lib/primitives/Hex/toNumber.js","/_mintlify/custom/tevm/7847828161ebd5c0/public/lib/primitives/Hex/toString.js","/_mintlify/custom/tevm/8beb317e49d6e4b5/public/lib/primitives/Hex/trim.js","/_mintlify/custom/tevm/e04856d83b79fd62/public/lib/primitives/Hex/utils.js","/_mintlify/custom/tevm/868916bf7ba78fda/public/lib/primitives/Hex/validate.js","/_mintlify/custom/tevm/24c70bd5461596af/public/lib/primitives/Hex/xor.js","/_mintlify/custom/tevm/4a0260ed70052249/public/lib/primitives/Hex/zero.js","/_mintlify/custom/tevm/5c128827a2ce2e2c/public/lib/tevm.js","/_mintlify/custom/tevm/1b4c7be0717192cd/public/playground/assets/__vite-browser-external-C0fuJ8fl.js","/_mintlify/custom/tevm/859124dd29573d27/public/playground/assets/__vite-browser-external-CBWEVyox.js","/_mintlify/custom/tevm/435a17343618aa5a/public/playground/assets/ffi-VNFqKuDw.js","/_mintlify/custom/tevm/8d60c1220d8dc5a6/public/playground/assets/index-DKNrZ79z.js"],"subdomain":"tevm","siteName":"Voltaire","title":"Branded Types - Voltaire","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T05:04:20.275Z","originalFileLocation":"concepts/branded-types.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=\"Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Voltaire\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_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/tevm/rlLjwDSzWzfzc4wD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tevm/rlLjwDSzWzfzc4wD/_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/tevm/rlLjwDSzWzfzc4wD/_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/tevm/rlLjwDSzWzfzc4wD/_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/tevm/rlLjwDSzWzfzc4wD/_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/tevm/rlLjwDSzWzfzc4wD/_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/tevm/rlLjwDSzWzfzc4wD/_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/tevm/rlLjwDSzWzfzc4wD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Branded Types - Voltaire\">\u003cmeta data-mint-head property=\"og:description\" content=\"Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Voltaire\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://voltaire.tevm.sh/concepts/branded-types\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tevm.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Branded+Types\u0026amp;description=Compile-time+nominal+type+safety+over+raw+Uint8Array+and+bigint+with+zero+runtime+wrapper+overhead.\u0026amp;theme=9f525840923a22b0bf15eb9f\u0026amp;signature=89f34cb1538243b3b20a2b72beb1a21e8281aa758548af019f35c63538bda011\">\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=\"Branded Types - Voltaire\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tevm.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Branded+Types\u0026amp;description=Compile-time+nominal+type+safety+over+raw+Uint8Array+and+bigint+with+zero+runtime+wrapper+overhead.\u0026amp;theme=9f525840923a22b0bf15eb9f\u0026amp;signature=89f34cb1538243b3b20a2b72beb1a21e8281aa758548af019f35c63538bda011\">\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/tevm/rlLjwDSzWzfzc4wD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Voltaire\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10B981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://voltaire.tevm.sh/concepts/branded-types\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/branded-types.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://voltaire.tevm.sh/#organization\",\"name\":\"Voltaire\",\"url\":\"https://voltaire.tevm.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tevm/YrHiDehri69PtRdL/logo-light.png?fit=max\u0026auto=format\u0026n=YrHiDehri69PtRdL\u0026q=85\u0026s=e95a5d32dd74826fc038b77937ff5e69\"}},{\"@type\":\"WebSite\",\"@id\":\"https://voltaire.tevm.sh#website\",\"name\":\"Voltaire\",\"url\":\"https://voltaire.tevm.sh\",\"publisher\":{\"@id\":\"https://voltaire.tevm.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://voltaire.tevm.sh/concepts/branded-types#webpage\",\"url\":\"https://voltaire.tevm.sh/concepts/branded-types\",\"name\":\"Branded Types\",\"description\":\"Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.\",\"dateModified\":\"2026-11-23T05:04:20.275Z\",\"isPartOf\":{\"@id\":\"https://voltaire.tevm.sh#website\"},\"breadcrumb\":{\"@id\":\"https://voltaire.tevm.sh/concepts/branded-types#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://voltaire.tevm.sh/concepts/branded-types#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Voltaire\",\"item\":\"https://voltaire.tevm.sh\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Branded Types\",\"item\":\"https://voltaire.tevm.sh/concepts/branded-types\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://voltaire.tevm.sh/concepts/branded-types#article\",\"headline\":\"Branded Types\",\"name\":\"Branded Types\",\"description\":\"Compile-time nominal type safety over raw Uint8Array and bigint with zero runtime wrapper overhead.\",\"url\":\"https://voltaire.tevm.sh/concepts/branded-types\",\"mainEntityOfPage\":{\"@id\":\"https://voltaire.tevm.sh/concepts/branded-types#webpage\"},\"dateModified\":\"2026-11-23T05:04:20.275Z\",\"publisher\":{\"@id\":\"https://voltaire.tevm.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://voltaire.tevm.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Voltaire\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Voltaire\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/branded-types.md","siteName":"Voltaire","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/evmts/voltaire"},{"anchor":"Twitter","icon":"twitter","href":"https://twitter.com/tevmtools"}]},"tabs":[{"tab":"Learn","icon":"graduation-cap","groups":[{"group":"Start Here","icon":"rocket","pages":[{"title":"What is Voltaire?","href":"/introduction"},{"title":"Getting Started","href":"/getting-started"},{"title":"Playground","href":"/playground"},{"title":"Library Comparisons","href":"/comparisons"},{"title":"Performance","href":"/performance"}]},{"group":"Tutorials","icon":"book-open","pages":[{"title":"Tutorials","href":"/tutorials/index"},{"title":"Tutorial 1: The $10M Parameter Swap","href":"/tutorials/type-safe-addresses"},{"title":"Tutorial 2: Reading Raw Calldata Like an EVM","href":"/tutorials/abi-and-calldata"},{"title":"Tutorial 3: Building a Gasless Permit Relayer","href":"/tutorials/signing-and-eip712"},{"title":"Tutorial 4: Anatomy of an EIP-1559 Transaction","href":"/tutorials/transactions-and-rlp"},{"title":"Tutorial 5: Own Your Abstraction: Build a Skill","description":"Compose Voltaire primitives into a 50-line typed ERC-20 reader you own, customize, and maintain alongside your AI assistant.","href":"/tutorials/building-a-skill"}]},{"group":"Core Concepts","icon":"lightbulb","pages":[{"title":"Branded Types","href":"/concepts/branded-types"},{"title":"Data-First \u0026 Tree-Shakeable API","description":"Why Voltaire separates raw data from functions, and how subpath and functional imports keep bundles minimal.","href":"/concepts/data-first-api"},{"title":"Runtimes \u0026 WASM","href":"/concepts/runtimes-and-wasm"},{"title":"Error Handling","href":"/concepts/error-handling"},{"title":"Skills","href":"/concepts/skills"},{"title":"Multiplatform Architecture","href":"/concepts/multiplatform"},{"title":"AI-Assisted Development \u0026 MCP","href":"/concepts/ai-and-mcp"},{"title":"Schema Annotations","href":"/concepts/schema-annotations"},{"title":"External Dependencies","href":"/concepts/external-dependencies"}]}]},{"tab":"Guides \u0026 Skills","icon":"wand-magic-sparkles","pages":[{"title":"Guides \u0026 Skills","href":"/guides/rate-limiting"}]},{"tab":"API Reference","icon":"cubes","pages":[{"title":"API Reference","href":"/primitives/address"}]},{"tab":"SDKs \u0026 Internals","icon":"wrench","pages":[{"title":"SDKs \u0026 Internals","href":"/swift"}]}]},"basePath":"","title":"Branded Types - Voltaire","deploymentId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","buildId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","dynamics":[],"chunks":[]}