[{"data":1,"prerenderedAt":2635},["ShallowReactive",2],{"navigation":3,"\u002Fschemas\u002Fcrypto":383,"\u002Fschemas\u002Fcrypto-surround":2630},[4,27,77,95,121,139,361,379],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":26},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14,18,22],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":19,"path":20,"stem":21},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",{"title":23,"path":24,"stem":25},"MSRV","\u002Fgetting-started\u002Fmsrv","1.getting-started\u002F9.msrv",false,{"title":28,"icon":29,"path":30,"stem":31,"children":32,"page":26},"Schemas","i-lucide-shapes","\u002Fschemas","2.schemas",[33,37,41,45,49,53,57,61,65,69,73],{"title":34,"path":35,"stem":36},"Strings","\u002Fschemas\u002Fstrings","2.schemas\u002F1.strings",{"title":38,"path":39,"stem":40},"Custom rules","\u002Fschemas\u002Frules","2.schemas\u002F10.rules",{"title":42,"path":43,"stem":44},"Crypto addresses","\u002Fschemas\u002Fcrypto","2.schemas\u002F11.crypto",{"title":46,"path":47,"stem":48},"Numbers","\u002Fschemas\u002Fnumbers","2.schemas\u002F2.numbers",{"title":50,"path":51,"stem":52},"Booleans, literals and enums","\u002Fschemas\u002Fprimitives","2.schemas\u002F3.primitives",{"title":54,"path":55,"stem":56},"Dates and times","\u002Fschemas\u002Fdates","2.schemas\u002F4.dates",{"title":58,"path":59,"stem":60},"Collections","\u002Fschemas\u002Fcollections","2.schemas\u002F5.collections",{"title":62,"path":63,"stem":64},"Dynamic objects","\u002Fschemas\u002Fobjects","2.schemas\u002F6.objects",{"title":66,"path":67,"stem":68},"Modifiers","\u002Fschemas\u002Fmodifiers","2.schemas\u002F7.modifiers",{"title":70,"path":71,"stem":72},"Combinators","\u002Fschemas\u002Fcombinators","2.schemas\u002F8.combinators",{"title":74,"path":75,"stem":76},"Other types","\u002Fschemas\u002Fspecial-types","2.schemas\u002F9.special-types",{"title":78,"icon":79,"path":80,"stem":81,"children":82,"page":26},"Structs","i-lucide-braces","\u002Fstructs","3.structs",[83,87,91],{"title":84,"path":85,"stem":86},"schema! macro","\u002Fstructs\u002Fschema-macro","3.structs\u002F1.schema-macro",{"title":88,"path":89,"stem":90},"#[derive(Validate)]","\u002Fstructs\u002Fderive","3.structs\u002F2.derive",{"title":92,"path":93,"stem":94},"Validate and lenient parsing","\u002Fstructs\u002Fvalidate-and-lenient","3.structs\u002F3.validate-and-lenient",{"title":96,"icon":97,"path":98,"stem":99,"children":100,"page":26},"Errors","i-lucide-triangle-alert","\u002Ferrors","4.errors",[101,105,109,113,117],{"title":102,"path":103,"stem":104},"Error model","\u002Ferrors\u002Foverview","4.errors\u002F1.overview",{"title":106,"path":107,"stem":108},"Issue codes","\u002Ferrors\u002Fissue-codes","4.errors\u002F2.issue-codes",{"title":110,"path":111,"stem":112},"Formatting","\u002Ferrors\u002Fformatting","4.errors\u002F3.formatting",{"title":114,"path":115,"stem":116},"Custom messages","\u002Ferrors\u002Fcustom-messages","4.errors\u002F4.custom-messages",{"title":118,"path":119,"stem":120},"Translations","\u002Ferrors\u002Fi18n","4.errors\u002F5.i18n",{"title":122,"icon":123,"path":124,"stem":125,"children":126,"page":26},"OpenAPI","i-lucide-file-json","\u002Fopenapi","5.openapi",[127,131,135],{"title":128,"path":129,"stem":130},"JSON Schema and OpenAPI","\u002Fopenapi\u002Fjson-schema","5.openapi\u002F1.json-schema",{"title":132,"path":133,"stem":134},"Schema diff","\u002Fopenapi\u002Fdiff","5.openapi\u002F2.diff",{"title":136,"path":137,"stem":138},"LLM structured outputs","\u002Fopenapi\u002Fllm","5.openapi\u002F3.llm",{"title":140,"icon":141,"path":142,"stem":143,"children":144,"page":26},"Integrations","i-lucide-plug","\u002Fintegrations","6.integrations",[145,215,233,247,285,315,333,347],{"title":146,"icon":147,"path":148,"stem":149,"children":150,"page":26},"Web frameworks","i-lucide-globe","\u002Fintegrations\u002Fweb","6.integrations\u002F1.web",[151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211],{"title":152,"path":153,"stem":154},"Overview","\u002Fintegrations\u002Fweb\u002Foverview","6.integrations\u002F1.web\u002F01.overview",{"title":156,"path":157,"stem":158},"axum","\u002Fintegrations\u002Fweb\u002Faxum","6.integrations\u002F1.web\u002F02.axum",{"title":160,"path":161,"stem":162},"actix-web","\u002Fintegrations\u002Fweb\u002Factix","6.integrations\u002F1.web\u002F03.actix",{"title":164,"path":165,"stem":166},"ntex","\u002Fintegrations\u002Fweb\u002Fntex","6.integrations\u002F1.web\u002F04.ntex",{"title":168,"path":169,"stem":170},"poem","\u002Fintegrations\u002Fweb\u002Fpoem","6.integrations\u002F1.web\u002F05.poem",{"title":172,"path":173,"stem":174},"rama","\u002Fintegrations\u002Fweb\u002Frama","6.integrations\u002F1.web\u002F06.rama",{"title":176,"path":177,"stem":178},"Rocket","\u002Fintegrations\u002Fweb\u002Frocket","6.integrations\u002F1.web\u002F07.rocket",{"title":180,"path":181,"stem":182},"salvo","\u002Fintegrations\u002Fweb\u002Fsalvo","6.integrations\u002F1.web\u002F08.salvo",{"title":184,"path":185,"stem":186},"Tower","\u002Fintegrations\u002Fweb\u002Ftower","6.integrations\u002F1.web\u002F09.tower",{"title":188,"path":189,"stem":190},"warp","\u002Fintegrations\u002Fweb\u002Fwarp","6.integrations\u002F1.web\u002F10.warp",{"title":192,"path":193,"stem":194},"tonic","\u002Fintegrations\u002Fweb\u002Ftonic","6.integrations\u002F1.web\u002F11.tonic",{"title":196,"path":197,"stem":198},"vld_web::common","\u002Fintegrations\u002Fweb\u002Fcommon","6.integrations\u002F1.web\u002F12.common",{"title":200,"path":201,"stem":202},"async-graphql","\u002Fintegrations\u002Fweb\u002Fasync-graphql","6.integrations\u002F1.web\u002F13.async-graphql",{"title":204,"path":205,"stem":206},"WebSocket","\u002Fintegrations\u002Fweb\u002Fwebsocket","6.integrations\u002F1.web\u002F14.websocket",{"title":208,"path":209,"stem":210},"AWS Lambda","\u002Fintegrations\u002Fweb\u002Flambda","6.integrations\u002F1.web\u002F15.lambda",{"title":212,"path":213,"stem":214},"loco-rs","\u002Fintegrations\u002Fweb\u002Floco","6.integrations\u002F1.web\u002F16.loco",{"title":216,"icon":217,"path":218,"stem":219,"children":220,"page":26},"OpenAPI and JSON Schema","i-lucide-file-code","\u002Fintegrations\u002Fopenapi","6.integrations\u002F2.openapi",[221,225,229],{"title":222,"path":223,"stem":224},"utoipa","\u002Fintegrations\u002Fopenapi\u002Futoipa","6.integrations\u002F2.openapi\u002F1.utoipa",{"title":226,"path":227,"stem":228},"schemars and aide","\u002Fintegrations\u002Fopenapi\u002Fschemars","6.integrations\u002F2.openapi\u002F2.schemars",{"title":230,"path":231,"stem":232},"poem-openapi","\u002Fintegrations\u002Fopenapi\u002Fpoem-openapi","6.integrations\u002F2.openapi\u002F3.poem-openapi",{"title":234,"icon":235,"path":236,"stem":237,"children":238,"page":26},"Codegen and test data","i-lucide-wand","\u002Fintegrations\u002Fcodegen","6.integrations\u002F3.codegen",[239,243],{"title":240,"path":241,"stem":242},"TypeScript, Zod, Valibot","\u002Fintegrations\u002Fcodegen\u002Fts","6.integrations\u002F3.codegen\u002F1.ts",{"title":244,"path":245,"stem":246},"Fake data","\u002Fintegrations\u002Fcodegen\u002Ffake","6.integrations\u002F3.codegen\u002F2.fake",{"title":248,"icon":249,"path":250,"stem":251,"children":252,"page":26},"Databases","i-lucide-database","\u002Fintegrations\u002Fdatabase","6.integrations\u002F4.database",[253,257,261,265,269,273,277,281],{"title":254,"path":255,"stem":256},"SQLx","\u002Fintegrations\u002Fdatabase\u002Fsqlx","6.integrations\u002F4.database\u002F1.sqlx",{"title":258,"path":259,"stem":260},"Diesel","\u002Fintegrations\u002Fdatabase\u002Fdiesel","6.integrations\u002F4.database\u002F2.diesel",{"title":262,"path":263,"stem":264},"SeaORM","\u002Fintegrations\u002Fdatabase\u002Fsea-orm","6.integrations\u002F4.database\u002F3.sea-orm",{"title":266,"path":267,"stem":268},"SurrealDB","\u002Fintegrations\u002Fdatabase\u002Fsurrealdb","6.integrations\u002F4.database\u002F4.surrealdb",{"title":270,"path":271,"stem":272},"MongoDB (bson)","\u002Fintegrations\u002Fdatabase\u002Fmongodb","6.integrations\u002F4.database\u002F5.mongodb",{"title":274,"path":275,"stem":276},"tokio-postgres","\u002Fintegrations\u002Fdatabase\u002Ftokio-postgres","6.integrations\u002F4.database\u002F6.tokio-postgres",{"title":278,"path":279,"stem":280},"ClickHouse","\u002Fintegrations\u002Fdatabase\u002Fclickhouse","6.integrations\u002F4.database\u002F7.clickhouse",{"title":282,"path":283,"stem":284},"CSV import","\u002Fintegrations\u002Fdatabase\u002Fcsv","6.integrations\u002F4.database\u002F8.csv",{"title":286,"icon":287,"path":288,"stem":289,"children":290,"page":26},"Messaging","i-lucide-mail","\u002Fintegrations\u002Fmessaging","6.integrations\u002F5.messaging",[291,295,299,303,307,311],{"title":292,"path":293,"stem":294},"Redis","\u002Fintegrations\u002Fmessaging\u002Fredis","6.integrations\u002F5.messaging\u002F1.redis",{"title":296,"path":297,"stem":298},"lapin (RabbitMQ)","\u002Fintegrations\u002Fmessaging\u002Flapin","6.integrations\u002F5.messaging\u002F2.lapin",{"title":300,"path":301,"stem":302},"MQTT (rumqttc)","\u002Fintegrations\u002Fmessaging\u002Fmqtt","6.integrations\u002F5.messaging\u002F3.mqtt",{"title":304,"path":305,"stem":306},"NATS (async-nats)","\u002Fintegrations\u002Fmessaging\u002Fnats","6.integrations\u002F5.messaging\u002F4.nats",{"title":308,"path":309,"stem":310},"Centrifugo (centrifuge-client)","\u002Fintegrations\u002Fmessaging\u002Fcentrifugo","6.integrations\u002F5.messaging\u002F5.centrifugo",{"title":312,"path":313,"stem":314},"Socket.IO (socketio-next)","\u002Fintegrations\u002Fmessaging\u002Fsocketio","6.integrations\u002F5.messaging\u002F6.socketio",{"title":316,"icon":317,"path":318,"stem":319,"children":320,"page":26},"Config and CLI","i-lucide-terminal","\u002Fintegrations\u002Fconfig-cli","6.integrations\u002F6.config-cli",[321,325,329],{"title":322,"path":323,"stem":324},"config-rs and figment","\u002Fintegrations\u002Fconfig-cli\u002Fconfig","6.integrations\u002F6.config-cli\u002F1.config",{"title":326,"path":327,"stem":328},"clap","\u002Fintegrations\u002Fconfig-cli\u002Fclap","6.integrations\u002F6.config-cli\u002F2.clap",{"title":330,"path":331,"stem":332},"Environment variables","\u002Fintegrations\u002Fconfig-cli\u002Fenv","6.integrations\u002F6.config-cli\u002F3.env",{"title":334,"icon":335,"path":336,"stem":337,"children":338,"page":26},"UI frameworks","i-lucide-monitor","\u002Fintegrations\u002Fui","6.integrations\u002F7.ui",[339,343],{"title":340,"path":341,"stem":342},"Server functions (Leptos, Dioxus)","\u002Fintegrations\u002Fui\u002Fform","6.integrations\u002F7.ui\u002F1.form",{"title":344,"path":345,"stem":346},"Tauri","\u002Fintegrations\u002Fui\u002Ftauri","6.integrations\u002F7.ui\u002F2.tauri",{"title":348,"icon":349,"path":350,"stem":351,"children":352,"page":26},"AI tools","i-lucide-bot","\u002Fintegrations\u002Fai","6.integrations\u002F8.ai",[353,357],{"title":354,"path":355,"stem":356},"MCP (rmcp)","\u002Fintegrations\u002Fai\u002Frmcp","6.integrations\u002F8.ai\u002F1.rmcp",{"title":358,"path":359,"stem":360},"rig","\u002Fintegrations\u002Fai\u002Frig","6.integrations\u002F8.ai\u002F2.rig",{"title":362,"icon":363,"path":364,"stem":365,"children":366,"page":26},"Guides","i-lucide-book-open","\u002Fguides","7.guides",[367,371,375],{"title":368,"path":369,"stem":370},"Migration","\u002Fguides\u002Fmigration","7.guides\u002F1.migration",{"title":372,"path":373,"stem":374},"Security notes","\u002Fguides\u002Fsecurity","7.guides\u002F2.security",{"title":376,"path":377,"stem":378},"Performance","\u002Fguides\u002Fperformance","7.guides\u002F3.performance",{"title":380,"path":381,"stem":382},"Changelog","\u002Fchangelog","9.changelog",{"id":384,"title":42,"body":385,"description":2624,"extension":2625,"links":2626,"meta":2627,"navigation":480,"path":43,"seo":2628,"stem":44,"__hash__":2629},"docs\u002F2.schemas\u002F11.crypto.md",{"type":386,"value":387,"toc":2614},"minimark",[388,408,419,424,669,684,696,700,714,940,1075,1085,1089,1490,1493,1600,1605,1741,1750,1754,1844,1848,1855,2269,2451,2458,2462,2489,2588,2610],[389,390,391,392,396,397,400,401,400,404,407],"p",{},"Feature ",[393,394,395],"code",{},"crypto"," (dependencies ",[393,398,399],{},"sha2",", ",[393,402,403],{},"sha3",[393,405,406],{},"blake2",", all RustCrypto, MIT \u002F Apache-2.0). Addresses are checked offline against their network's encoding, checksum, version \u002F prefix and length rules.",[409,410,411],"warning",{},[389,412,413,414,418],{},"A ",[415,416,417],"strong",{},"valid"," address is well-formed for its network. Whether it exists, has ever been used, holds funds or belongs to the person who typed it cannot be checked offline. A valid address of the right network with a typo that the checksum misses (Solana has none; Base58Check misses one typo in 2³²) still passes.",[420,421,423],"h2",{"id":422},"on-a-string","On a string",[425,426,431],"pre",{"className":427,"code":428,"language":429,"meta":430,"style":430},"language-rust shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use vld::prelude::*;\nuse vld::crypto::Network;\n\nlet btc = vld::string().trim().crypto_address(Network::Bitcoin);\nassert!(btc.parse(r#\"\"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4\"\"#).is_ok());\n\nlet err = btc.parse(r#\"\"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t5\"\"#).unwrap_err();\nassert_eq!(err.issues[0].code.key(), \"invalid_crypto_address\");\n\u002F\u002F params: network = \"bitcoin\", reason = \"checksum\"\n\u002F\u002F message: \"Invalid bitcoin address (checksum)\"\n","rust","",[393,432,433,456,475,482,528,569,574,610,656,663],{"__ignoreMap":430},[434,435,438,442,446,450,453],"span",{"class":436,"line":437},"line",1,[434,439,441],{"class":440},"sbssI","use",[434,443,445],{"class":444},"sBMFI"," vld",[434,447,449],{"class":448},"sMK4o","::",[434,451,452],{"class":444},"prelude",[434,454,455],{"class":448},"::*;\n",[434,457,459,461,463,465,467,469,472],{"class":436,"line":458},2,[434,460,441],{"class":440},[434,462,445],{"class":444},[434,464,449],{"class":448},[434,466,395],{"class":444},[434,468,449],{"class":448},[434,470,471],{"class":444},"Network",[434,473,474],{"class":448},";\n",[434,476,478],{"class":436,"line":477},3,[434,479,481],{"emptyLinePlaceholder":480},true,"\n",[434,483,485,489,493,496,498,500,504,507,510,512,515,518,520,522,525],{"class":436,"line":484},4,[434,486,488],{"class":487},"spNyl","let",[434,490,492],{"class":491},"sTEyZ"," btc ",[434,494,495],{"class":448},"=",[434,497,445],{"class":444},[434,499,449],{"class":448},[434,501,503],{"class":502},"s2Zo4","string",[434,505,506],{"class":448},"().",[434,508,509],{"class":502},"trim",[434,511,506],{"class":448},[434,513,514],{"class":502},"crypto_address",[434,516,517],{"class":448},"(",[434,519,471],{"class":444},[434,521,449],{"class":448},[434,523,524],{"class":444},"Bitcoin",[434,526,527],{"class":448},");\n",[434,529,531,534,536,539,542,545,547,551,554,557,560,563,566],{"class":436,"line":530},5,[434,532,533],{"class":502},"assert!",[434,535,517],{"class":448},[434,537,538],{"class":491},"btc",[434,540,541],{"class":448},".",[434,543,544],{"class":502},"parse",[434,546,517],{"class":448},[434,548,550],{"class":549},"sfazB","r",[434,552,553],{"class":448},"#\"",[434,555,556],{"class":549},"\"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4\"",[434,558,559],{"class":448},"\"#",[434,561,562],{"class":448},").",[434,564,565],{"class":502},"is_ok",[434,567,568],{"class":448},"());\n",[434,570,572],{"class":436,"line":571},6,[434,573,481],{"emptyLinePlaceholder":480},[434,575,577,579,582,584,587,589,591,593,595,597,600,602,604,607],{"class":436,"line":576},7,[434,578,488],{"class":487},[434,580,581],{"class":491}," err ",[434,583,495],{"class":448},[434,585,586],{"class":491}," btc",[434,588,541],{"class":448},[434,590,544],{"class":502},[434,592,517],{"class":448},[434,594,550],{"class":549},[434,596,553],{"class":448},[434,598,599],{"class":549},"\"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t5\"",[434,601,559],{"class":448},[434,603,562],{"class":448},[434,605,606],{"class":502},"unwrap_err",[434,608,609],{"class":448},"();\n",[434,611,613,616,618,621,623,626,629,632,635,637,639,642,645,648,651,654],{"class":436,"line":612},8,[434,614,615],{"class":502},"assert_eq!",[434,617,517],{"class":448},[434,619,620],{"class":491},"err",[434,622,541],{"class":448},[434,624,625],{"class":491},"issues",[434,627,628],{"class":448},"[",[434,630,631],{"class":440},"0",[434,633,634],{"class":448},"].",[434,636,393],{"class":491},[434,638,541],{"class":448},[434,640,641],{"class":502},"key",[434,643,644],{"class":448},"(),",[434,646,647],{"class":448}," \"",[434,649,650],{"class":549},"invalid_crypto_address",[434,652,653],{"class":448},"\"",[434,655,527],{"class":448},[434,657,659],{"class":436,"line":658},9,[434,660,662],{"class":661},"sHwdD","\u002F\u002F params: network = \"bitcoin\", reason = \"checksum\"\n",[434,664,666],{"class":436,"line":665},10,[434,667,668],{"class":661},"\u002F\u002F message: \"Invalid bitcoin address (checksum)\"\n",[389,670,671,672,675,676,679,680,683],{},"Several networks: ",[393,673,674],{},"crypto_address_any([Network::Bitcoin, Network::Ethereum])",". The first network that accepts the value wins. A failure names the network whose checksum \u002F network \u002F kind rule failed, or every network joined with ",[393,677,678],{},"|"," (",[393,681,682],{},"bitcoin|ethereum",") when none recognised the shape.",[389,685,686,689,690,693,694,541],{},[393,687,688],{},"crypto_address_msg(network, \"...\")"," sets the message; ",[393,691,692],{},"with_messages"," uses the key ",[393,695,650],{},[420,697,699],{"id":698},"typed-what-was-detected","Typed: what was detected",[389,701,702,705,706,709,710,713],{},[393,703,704],{},"vld::crypto::address(network)"," (and ",[393,707,708],{},"address_any",") outputs a ",[393,711,712],{},"CryptoAddress",":",[425,715,717],{"className":427,"code":716,"language":429,"meta":430,"style":430},"use vld::prelude::*;\nuse vld::crypto::{AddressKind, Network};\n\nlet a = vld::crypto::address(Network::Bitcoin)\n    .parse(r#\"\"BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4\"\"#)\n    .unwrap();\nassert_eq!(a.network, \"bitcoin\");\nassert_eq!(a.kind, AddressKind::P2wpkh);\nassert!(!a.testnet);\nassert_eq!(a.normalized, \"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4\");\nassert_eq!(a.payload.len(), 20); \u002F\u002F the witness program\n",[393,718,719,731,756,760,791,811,820,845,870,886,910],{"__ignoreMap":430},[434,720,721,723,725,727,729],{"class":436,"line":437},[434,722,441],{"class":440},[434,724,445],{"class":444},[434,726,449],{"class":448},[434,728,452],{"class":444},[434,730,455],{"class":448},[434,732,733,735,737,739,741,744,747,750,753],{"class":436,"line":458},[434,734,441],{"class":440},[434,736,445],{"class":444},[434,738,449],{"class":448},[434,740,395],{"class":444},[434,742,743],{"class":448},"::{",[434,745,746],{"class":444},"AddressKind",[434,748,749],{"class":448},",",[434,751,752],{"class":444}," Network",[434,754,755],{"class":448},"};\n",[434,757,758],{"class":436,"line":477},[434,759,481],{"emptyLinePlaceholder":480},[434,761,762,764,767,769,771,773,775,777,780,782,784,786,788],{"class":436,"line":484},[434,763,488],{"class":487},[434,765,766],{"class":491}," a ",[434,768,495],{"class":448},[434,770,445],{"class":444},[434,772,449],{"class":448},[434,774,395],{"class":444},[434,776,449],{"class":448},[434,778,779],{"class":502},"address",[434,781,517],{"class":448},[434,783,471],{"class":444},[434,785,449],{"class":448},[434,787,524],{"class":444},[434,789,790],{"class":448},")\n",[434,792,793,796,798,800,802,804,807,809],{"class":436,"line":530},[434,794,795],{"class":448},"    .",[434,797,544],{"class":502},[434,799,517],{"class":448},[434,801,550],{"class":549},[434,803,553],{"class":448},[434,805,806],{"class":549},"\"BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4\"",[434,808,559],{"class":448},[434,810,790],{"class":448},[434,812,813,815,818],{"class":436,"line":571},[434,814,795],{"class":448},[434,816,817],{"class":502},"unwrap",[434,819,609],{"class":448},[434,821,822,824,826,829,831,834,836,838,841,843],{"class":436,"line":576},[434,823,615],{"class":502},[434,825,517],{"class":448},[434,827,828],{"class":491},"a",[434,830,541],{"class":448},[434,832,833],{"class":491},"network",[434,835,749],{"class":448},[434,837,647],{"class":448},[434,839,840],{"class":549},"bitcoin",[434,842,653],{"class":448},[434,844,527],{"class":448},[434,846,847,849,851,853,855,858,860,863,865,868],{"class":436,"line":612},[434,848,615],{"class":502},[434,850,517],{"class":448},[434,852,828],{"class":491},[434,854,541],{"class":448},[434,856,857],{"class":491},"kind",[434,859,749],{"class":448},[434,861,862],{"class":444}," AddressKind",[434,864,449],{"class":448},[434,866,867],{"class":444},"P2wpkh",[434,869,527],{"class":448},[434,871,872,874,877,879,881,884],{"class":436,"line":658},[434,873,533],{"class":502},[434,875,876],{"class":448},"(!",[434,878,828],{"class":491},[434,880,541],{"class":448},[434,882,883],{"class":491},"testnet",[434,885,527],{"class":448},[434,887,888,890,892,894,896,899,901,903,906,908],{"class":436,"line":665},[434,889,615],{"class":502},[434,891,517],{"class":448},[434,893,828],{"class":491},[434,895,541],{"class":448},[434,897,898],{"class":491},"normalized",[434,900,749],{"class":448},[434,902,647],{"class":448},[434,904,905],{"class":549},"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",[434,907,653],{"class":448},[434,909,527],{"class":448},[434,911,913,915,917,919,921,924,926,929,931,934,937],{"class":436,"line":912},11,[434,914,615],{"class":502},[434,916,517],{"class":448},[434,918,828],{"class":491},[434,920,541],{"class":448},[434,922,923],{"class":491},"payload",[434,925,541],{"class":448},[434,927,928],{"class":502},"len",[434,930,644],{"class":448},[434,932,933],{"class":440}," 20",[434,935,936],{"class":448},");",[434,938,939],{"class":661}," \u002F\u002F the witness program\n",[941,942,943,956],"table",{},[944,945,946],"thead",{},[947,948,949,953],"tr",{},[950,951,952],"th",{},"Field",[950,954,955],{},"Meaning",[957,958,959,978,1040,1053,1066],"tbody",{},[947,960,961,966],{},[962,963,964],"td",{},[393,965,833],{},[962,967,968,969,400,971,400,974,977],{},"network name (",[393,970,840],{},[393,972,973],{},"cosmos:osmo",[393,975,976],{},"substrate:1284",", a custom name)",[947,979,980,984],{},[962,981,982],{},[393,983,857],{},[962,985,986,400,989,400,992,400,994,400,997,400,1000,400,1003,400,1006,1009,1010,1009,1013,1009,1016,1019,1020,1009,1023,1009,1026,1029,1030,1009,1033,1009,1036,1039],{},[393,987,988],{},"P2pkh",[393,990,991],{},"P2sh",[393,993,867],{},[393,995,996],{},"P2wsh",[393,998,999],{},"P2tr",[393,1001,1002],{},"WitnessUnknown",[393,1004,1005],{},"Account",[393,1007,1008],{},"Base"," \u002F ",[393,1011,1012],{},"Pointer",[393,1014,1015],{},"Enterprise",[393,1017,1018],{},"Reward"," (Cardano), ",[393,1021,1022],{},"Bounceable",[393,1024,1025],{},"NonBounceable",[393,1027,1028],{},"Raw"," (TON), ",[393,1031,1032],{},"Standard",[393,1034,1035],{},"Integrated",[393,1037,1038],{},"Subaddress"," (Monero)",[947,1041,1042,1046],{},[962,1043,1044],{},[393,1045,883],{},[962,1047,1048,1049,1052],{},"testnet \u002F stagenet address; always ",[393,1050,1051],{},"false"," where the address does not encode the network",[947,1054,1055,1059],{},[962,1056,1057],{},[393,1058,898],{},[962,1060,1061,1062,1065],{},"EIP-55 case (Ethereum), lowercase (bech32, raw TON), ",[393,1063,1064],{},"bitcoincash:"," + lowercase (CashAddr), the input otherwise",[947,1067,1068,1072],{},[962,1069,1070],{},[393,1071,923],{},[962,1073,1074],{},"decoded data without version and checksum (hash, key, witness program, account id)",[389,1076,1077,1080,1081,1084],{},[393,1078,1079],{},"CryptoNetwork::validate(&str)"," gives the same result (or the ",[393,1082,1083],{},"CryptoAddressReason",") without a schema.",[420,1086,1088],{"id":1087},"networks","Networks",[941,1090,1091,1108],{},[944,1092,1093],{},[947,1094,1095,1099,1102,1105],{},[950,1096,1097],{},[393,1098,471],{},[950,1100,1101],{},"Forms",[950,1103,1104],{},"Rules checked",[950,1106,1107],{},"Spec",[957,1109,1110,1157,1205,1240,1270,1293,1315,1335,1356,1383,1401,1427,1468],{},[947,1111,1112,1116,1130,1154],{},[962,1113,1114],{},[393,1115,524],{},[962,1117,1118,1009,1121,400,1124,400,1127],{},[393,1119,1120],{},"1…",[393,1122,1123],{},"3…",[393,1125,1126],{},"bc1q…",[393,1128,1129],{},"bc1p…",[962,1131,1132,1133,1009,1136,1139,1140,1009,1143,1146,1147,1009,1150,1153],{},"Base58Check versions ",[393,1134,1135],{},"0x00",[393,1137,1138],{},"0x05"," (testnet ",[393,1141,1142],{},"0x6f",[393,1144,1145],{},"0xc4","); SegWit v0 bech32, v1+ bech32m, hrp ",[393,1148,1149],{},"bc",[393,1151,1152],{},"tb",", program 2–40 bytes (v0: 20 or 32), ≤ 90 chars, no mixed case",[962,1155,1156],{},"BIP-173, BIP-350",[947,1158,1159,1164,1177,1202],{},[962,1160,1161],{},[393,1162,1163],{},"Litecoin",[962,1165,1166,1009,1169,1009,1172,400,1174],{},[393,1167,1168],{},"L…",[393,1170,1171],{},"M…",[393,1173,1123],{},[393,1175,1176],{},"ltc1…",[962,1178,1179,1180,1009,1183,1009,1186,1139,1188,1009,1190,1009,1193,1195,1196,1009,1199],{},"versions ",[393,1181,1182],{},"0x30",[393,1184,1185],{},"0x32",[393,1187,1138],{},[393,1189,1142],{},[393,1191,1192],{},"0x3a",[393,1194,1145],{},"), hrp ",[393,1197,1198],{},"ltc",[393,1200,1201],{},"tltc",[962,1203,1204],{},"Litecoin chainparams",[947,1206,1207,1212,1223,1237],{},[962,1208,1209],{},[393,1210,1211],{},"Dogecoin",[962,1213,1214,400,1217,1009,1220],{},[393,1215,1216],{},"D…",[393,1218,1219],{},"A…",[393,1221,1222],{},"9…",[962,1224,1179,1225,1009,1228,1139,1231,1009,1234,1236],{},[393,1226,1227],{},"0x1e",[393,1229,1230],{},"0x16",[393,1232,1233],{},"0x71",[393,1235,1145],{},")",[962,1238,1239],{},"Dogecoin chainparams",[947,1241,1242,1247,1257,1267],{},[962,1243,1244],{},[393,1245,1246],{},"BitcoinCash",[962,1248,1249,1252,1253,1009,1255],{},[393,1250,1251],{},"bitcoincash:q…",", legacy ",[393,1254,1120],{},[393,1256,1123],{},[962,1258,1259,1260,1009,1263,1266],{},"CashAddr: prefix ",[393,1261,1262],{},"bitcoincash",[393,1264,1265],{},"bchtest"," (optional: the checksum covers it), 40-bit polymod, version byte type (P2PKH \u002F P2SH) and hash size; legacy as Bitcoin",[962,1268,1269],{},"CashAddr spec",[947,1271,1272,1277,1283,1290],{},[962,1273,1274],{},[393,1275,1276],{},"Ethereum",[962,1278,1279,1282],{},[393,1280,1281],{},"0x"," + 40 hex",[962,1284,1285,1286,1289],{},"EIP-55 checksum when mixed case; all-lower \u002F all-upper accepted unless ",[393,1287,1288],{},".checksummed()",". Any EVM chain (BSC, Polygon, Arbitrum, …)",[962,1291,1292],{},"EIP-55",[947,1294,1295,1300,1305,1312],{},[962,1296,1297],{},[393,1298,1299],{},"Tron",[962,1301,1302],{},[393,1303,1304],{},"T…",[962,1306,1307,1308,1311],{},"Base58Check, version ",[393,1309,1310],{},"0x41",", 20-byte account",[962,1313,1314],{},"TRON docs",[947,1316,1317,1322,1325,1332],{},[962,1318,1319],{},[393,1320,1321],{},"Solana",[962,1323,1324],{},"Base58",[962,1326,1327,1328,1331],{},"decodes to exactly 32 bytes. ",[415,1329,1330],{},"No checksum",": a typo that still decodes to 32 bytes passes",[962,1333,1334],{},"Solana docs",[947,1336,1337,1342,1347,1353],{},[962,1338,1339],{},[393,1340,1341],{},"Xrp",[962,1343,1344],{},[393,1345,1346],{},"r…",[962,1348,1349,1350,1352],{},"Base58Check in the Ripple alphabet, version ",[393,1351,1135],{},". X-addresses are not accepted",[962,1354,1355],{},"XRPL \"Address encoding\"",[947,1357,1358,1363,1377,1380],{},[962,1359,1360],{},[393,1361,1362],{},"Cardano",[962,1364,1365,400,1368,400,1371,400,1374],{},[393,1366,1367],{},"addr1…",[393,1369,1370],{},"addr_test1…",[393,1372,1373],{},"stake1…",[393,1375,1376],{},"stake_test1…",[962,1378,1379],{},"bech32 without the 90-char limit, header type (base 57 bytes, pointer with three var-length naturals, enterprise \u002F reward 29), network id 1 \u002F 0 matching the hrp. Byron addresses are not accepted",[962,1381,1382],{},"CIP-19",[947,1384,1385,1390,1395,1398],{},[962,1386,1387],{},[393,1388,1389],{},"Cosmos",[962,1391,1392],{},[393,1393,1394],{},"cosmos1…",[962,1396,1397],{},"bech32 (not bech32m), 20- or 32-byte payload",[962,1399,1400],{},"Cosmos SDK",[947,1402,1403,1414,1417,1424],{},[962,1404,1405,1009,1408,1009,1411],{},[393,1406,1407],{},"Polkadot",[393,1409,1410],{},"Kusama",[393,1412,1413],{},"Substrate",[962,1415,1416],{},"SS58",[962,1418,1419,1420,1423],{},"Base58, 1- or 2-byte prefix 0 \u002F 2 \u002F 42, 32-byte account id or 33-byte ECDSA key, 2-byte ",[393,1421,1422],{},"blake2b-512(\"SS58PRE\" ++ data)"," checksum",[962,1425,1426],{},"SS58 spec",[947,1428,1429,1434,1446,1465],{},[962,1430,1431],{},[393,1432,1433],{},"Ton",[962,1435,1436,1009,1439,1442,1443],{},[393,1437,1438],{},"EQ…",[393,1440,1441],{},"UQ…"," (48 chars), ",[393,1444,1445],{},"0:\u003Chex>",[962,1447,1448,1449,1452,1453,1456,1457,1460,1461,1464],{},"base64 \u002F base64url (canonical) of flags (",[393,1450,1451],{},"0x11"," bounceable, ",[393,1454,1455],{},"0x51"," non-bounceable, ",[393,1458,1459],{},"+0x80"," testnet) + workchain + 32-byte hash + CRC16-XMODEM; raw ",[393,1462,1463],{},"\u003Cworkchain>:\u003C64 hex>"," (workchain −128..127)",[962,1466,1467],{},"TON docs",[947,1469,1470,1475,1484,1487],{},[962,1471,1472],{},[393,1473,1474],{},"Monero",[962,1476,1477,1009,1480,1483],{},[393,1478,1479],{},"4…",[393,1481,1482],{},"8…"," (95 chars), integrated (106)",[962,1485,1486],{},"Monero Base58 (8-byte blocks), keccak-256 4-byte checksum, network byte 18 \u002F 19 \u002F 42 (testnet 53 \u002F 54 \u002F 63, stagenet 24 \u002F 25 \u002F 36)",[962,1488,1489],{},"Monero source",[389,1491,1492],{},"Other Cosmos chains and Substrate prefixes:",[425,1494,1496],{"className":427,"code":1495,"language":429,"meta":430,"style":430},"use vld::crypto::CryptoNetwork;\n\nlet osmo = vld::string().crypto_address(CryptoNetwork::cosmos(\"osmo\"));  \u002F\u002F named \"cosmos:osmo\"\nlet moonbeam = vld::string().crypto_address(CryptoNetwork::ss58(1284));  \u002F\u002F named \"substrate:1284\"\n",[393,1497,1498,1515,1519,1562],{"__ignoreMap":430},[434,1499,1500,1502,1504,1506,1508,1510,1513],{"class":436,"line":437},[434,1501,441],{"class":440},[434,1503,445],{"class":444},[434,1505,449],{"class":448},[434,1507,395],{"class":444},[434,1509,449],{"class":448},[434,1511,1512],{"class":444},"CryptoNetwork",[434,1514,474],{"class":448},[434,1516,1517],{"class":436,"line":458},[434,1518,481],{"emptyLinePlaceholder":480},[434,1520,1521,1523,1526,1528,1530,1532,1534,1536,1538,1540,1542,1544,1547,1549,1551,1554,1556,1559],{"class":436,"line":477},[434,1522,488],{"class":487},[434,1524,1525],{"class":491}," osmo ",[434,1527,495],{"class":448},[434,1529,445],{"class":444},[434,1531,449],{"class":448},[434,1533,503],{"class":502},[434,1535,506],{"class":448},[434,1537,514],{"class":502},[434,1539,517],{"class":448},[434,1541,1512],{"class":444},[434,1543,449],{"class":448},[434,1545,1546],{"class":502},"cosmos",[434,1548,517],{"class":448},[434,1550,653],{"class":448},[434,1552,1553],{"class":549},"osmo",[434,1555,653],{"class":448},[434,1557,1558],{"class":448},"));",[434,1560,1561],{"class":661},"  \u002F\u002F named \"cosmos:osmo\"\n",[434,1563,1564,1566,1569,1571,1573,1575,1577,1579,1581,1583,1585,1587,1590,1592,1595,1597],{"class":436,"line":484},[434,1565,488],{"class":487},[434,1567,1568],{"class":491}," moonbeam ",[434,1570,495],{"class":448},[434,1572,445],{"class":444},[434,1574,449],{"class":448},[434,1576,503],{"class":502},[434,1578,506],{"class":448},[434,1580,514],{"class":502},[434,1582,517],{"class":448},[434,1584,1512],{"class":444},[434,1586,449],{"class":448},[434,1588,1589],{"class":502},"ss58",[434,1591,517],{"class":448},[434,1593,1594],{"class":440},"1284",[434,1596,1558],{"class":448},[434,1598,1599],{"class":661},"  \u002F\u002F named \"substrate:1284\"\n",[1601,1602,1604],"h3",{"id":1603},"options","Options",[425,1606,1608],{"className":427,"code":1607,"language":429,"meta":430,"style":430},"use vld::crypto::{AddressKind, Network};\n\nvld::string().crypto_address(Network::Bitcoin.mainnet());                         \u002F\u002F tb1… fails: reason \"network\"\nvld::string().crypto_address(Network::Bitcoin.kinds(&[AddressKind::P2wpkh, AddressKind::P2tr]));\nvld::string().crypto_address(Network::Ethereum.checksummed());                    \u002F\u002F all-lowercase fails: \"checksum\"\n",[393,1609,1610,1630,1634,1666,1711],{"__ignoreMap":430},[434,1611,1612,1614,1616,1618,1620,1622,1624,1626,1628],{"class":436,"line":437},[434,1613,441],{"class":440},[434,1615,445],{"class":444},[434,1617,449],{"class":448},[434,1619,395],{"class":444},[434,1621,743],{"class":448},[434,1623,746],{"class":444},[434,1625,749],{"class":448},[434,1627,752],{"class":444},[434,1629,755],{"class":448},[434,1631,1632],{"class":436,"line":458},[434,1633,481],{"emptyLinePlaceholder":480},[434,1635,1636,1639,1641,1643,1645,1647,1649,1651,1653,1655,1657,1660,1663],{"class":436,"line":477},[434,1637,1638],{"class":444},"vld",[434,1640,449],{"class":448},[434,1642,503],{"class":502},[434,1644,506],{"class":448},[434,1646,514],{"class":502},[434,1648,517],{"class":448},[434,1650,471],{"class":444},[434,1652,449],{"class":448},[434,1654,524],{"class":444},[434,1656,541],{"class":448},[434,1658,1659],{"class":502},"mainnet",[434,1661,1662],{"class":448},"());",[434,1664,1665],{"class":661},"                         \u002F\u002F tb1… fails: reason \"network\"\n",[434,1667,1668,1670,1672,1674,1676,1678,1680,1682,1684,1686,1688,1691,1694,1696,1698,1700,1702,1704,1706,1708],{"class":436,"line":484},[434,1669,1638],{"class":444},[434,1671,449],{"class":448},[434,1673,503],{"class":502},[434,1675,506],{"class":448},[434,1677,514],{"class":502},[434,1679,517],{"class":448},[434,1681,471],{"class":444},[434,1683,449],{"class":448},[434,1685,524],{"class":444},[434,1687,541],{"class":448},[434,1689,1690],{"class":502},"kinds",[434,1692,1693],{"class":448},"(&[",[434,1695,746],{"class":444},[434,1697,449],{"class":448},[434,1699,867],{"class":444},[434,1701,749],{"class":448},[434,1703,862],{"class":444},[434,1705,449],{"class":448},[434,1707,999],{"class":444},[434,1709,1710],{"class":448},"]));\n",[434,1712,1713,1715,1717,1719,1721,1723,1725,1727,1729,1731,1733,1736,1738],{"class":436,"line":530},[434,1714,1638],{"class":444},[434,1716,449],{"class":448},[434,1718,503],{"class":502},[434,1720,506],{"class":448},[434,1722,514],{"class":502},[434,1724,517],{"class":448},[434,1726,471],{"class":444},[434,1728,449],{"class":448},[434,1730,1276],{"class":444},[434,1732,541],{"class":448},[434,1734,1735],{"class":502},"checksummed",[434,1737,1662],{"class":448},[434,1739,1740],{"class":661},"                    \u002F\u002F all-lowercase fails: \"checksum\"\n",[389,1742,1743,1009,1746,1749],{},[393,1744,1745],{},"mainnet()",[393,1747,1748],{},"testnet()"," do nothing where the address does not encode the network (Ethereum, TRON, Solana, XRP, Cosmos, SS58, raw TON).",[1601,1751,1753],{"id":1752},"reasons","Reasons",[941,1755,1756,1768],{},[944,1757,1758],{},[947,1759,1760,1765],{},[950,1761,1762],{},[393,1763,1764],{},"reason",[950,1766,1767],{},"When",[957,1769,1770,1780,1790,1800,1810,1820,1832],{},[947,1771,1772,1777],{},[962,1773,1774],{},[393,1775,1776],{},"encoding",[962,1778,1779],{},"a character outside the alphabet, undecodable data, bad bech32 padding, unknown witness version \u002F header type",[947,1781,1782,1787],{},[962,1783,1784],{},[393,1785,1786],{},"length",[962,1788,1789],{},"wrong character count, decoded length, witness program \u002F payload length",[947,1791,1792,1797],{},[962,1793,1794],{},[393,1795,1796],{},"prefix",[962,1798,1799],{},"wrong version byte, hrp, CashAddr \u002F custom prefix, SS58 network prefix, TON flags; a valid address of another chain",[947,1801,1802,1807],{},[962,1803,1804],{},[393,1805,1806],{},"checksum",[962,1808,1809],{},"Base58Check \u002F bech32 \u002F CashAddr \u002F SS58 \u002F CRC16 \u002F keccak checksum, bech32 instead of bech32m (or the reverse), EIP-55 case",[947,1811,1812,1817],{},[962,1813,1814],{},[393,1815,1816],{},"case",[962,1818,1819],{},"mixed case in bech32 or CashAddr",[947,1821,1822,1826],{},[962,1823,1824],{},[393,1825,833],{},[962,1827,1828,1829,1831],{},"testnet where ",[393,1830,1745],{}," is set (or the reverse); Cardano network id not matching the hrp",[947,1833,1834,1838],{},[962,1835,1836],{},[393,1837,857],{},[962,1839,1840,1841],{},"an address kind not in ",[393,1842,1843],{},"kinds(...)",[420,1845,1847],{"id":1846},"custom-templates","Custom templates",[389,1849,1850,1851,1854],{},"Networks that are not built in are composed from primitives with ",[393,1852,1853],{},"CryptoNetwork::custom(name)"," and used wherever a network is:",[425,1856,1858],{"className":427,"code":1857,"language":429,"meta":430,"style":430},"use vld::prelude::*;\nuse vld::crypto::{Alphabet, Checksum, CryptoNetwork};\n\n\u002F\u002F Base58Check with version 0x1e, 34 characters (Dogecoin P2PKH by hand).\nlet mycoin = CryptoNetwork::custom(\"mycoin\").base58check(&[0x1e]).length(34);\nlet s = vld::string().crypto_address(mycoin);\nassert!(s.parse(r#\"\"DH5yaieqoZN36fDVciNyRueRGvGLR3mr7L\"\"#).is_ok());\n\n\u002F\u002F EVM-style hex with a required EIP-55 checksum.\nlet evm = CryptoNetwork::custom(\"evm\").prefix(\"0x\").hex().payload_len(20).checksum(Checksum::Eip55);\n\n\u002F\u002F bech32m with two hrps and a 32-byte payload.\nlet chain = CryptoNetwork::custom(\"chain\").bech32m(&[\"ch\", \"tch\"]).payload_len(32);\n\n\u002F\u002F Ripple-alphabet Base58 with a CRC32 and a two-byte version.\nlet other = CryptoNetwork::custom(\"other\")\n    .base58(Alphabet::Ripple)\n    .version_bytes(&[&[0x05, 0x44]])\n    .checksum(Checksum::Crc32)\n    .payload_len_range(20, 32);\n",[393,1859,1860,1872,1899,1903,1908,1954,1979,2009,2013,2018,2085,2089,2095,2154,2159,2165,2192,2211,2232,2250],{"__ignoreMap":430},[434,1861,1862,1864,1866,1868,1870],{"class":436,"line":437},[434,1863,441],{"class":440},[434,1865,445],{"class":444},[434,1867,449],{"class":448},[434,1869,452],{"class":444},[434,1871,455],{"class":448},[434,1873,1874,1876,1878,1880,1882,1884,1887,1889,1892,1894,1897],{"class":436,"line":458},[434,1875,441],{"class":440},[434,1877,445],{"class":444},[434,1879,449],{"class":448},[434,1881,395],{"class":444},[434,1883,743],{"class":448},[434,1885,1886],{"class":444},"Alphabet",[434,1888,749],{"class":448},[434,1890,1891],{"class":444}," Checksum",[434,1893,749],{"class":448},[434,1895,1896],{"class":444}," CryptoNetwork",[434,1898,755],{"class":448},[434,1900,1901],{"class":436,"line":477},[434,1902,481],{"emptyLinePlaceholder":480},[434,1904,1905],{"class":436,"line":484},[434,1906,1907],{"class":661},"\u002F\u002F Base58Check with version 0x1e, 34 characters (Dogecoin P2PKH by hand).\n",[434,1909,1910,1912,1915,1917,1919,1921,1924,1926,1928,1931,1933,1935,1938,1940,1942,1945,1947,1949,1952],{"class":436,"line":530},[434,1911,488],{"class":487},[434,1913,1914],{"class":491}," mycoin ",[434,1916,495],{"class":448},[434,1918,1896],{"class":444},[434,1920,449],{"class":448},[434,1922,1923],{"class":502},"custom",[434,1925,517],{"class":448},[434,1927,653],{"class":448},[434,1929,1930],{"class":549},"mycoin",[434,1932,653],{"class":448},[434,1934,562],{"class":448},[434,1936,1937],{"class":502},"base58check",[434,1939,1693],{"class":448},[434,1941,1227],{"class":440},[434,1943,1944],{"class":448},"]).",[434,1946,1786],{"class":502},[434,1948,517],{"class":448},[434,1950,1951],{"class":440},"34",[434,1953,527],{"class":448},[434,1955,1956,1958,1961,1963,1965,1967,1969,1971,1973,1975,1977],{"class":436,"line":571},[434,1957,488],{"class":487},[434,1959,1960],{"class":491}," s ",[434,1962,495],{"class":448},[434,1964,445],{"class":444},[434,1966,449],{"class":448},[434,1968,503],{"class":502},[434,1970,506],{"class":448},[434,1972,514],{"class":502},[434,1974,517],{"class":448},[434,1976,1930],{"class":491},[434,1978,527],{"class":448},[434,1980,1981,1983,1985,1988,1990,1992,1994,1996,1998,2001,2003,2005,2007],{"class":436,"line":576},[434,1982,533],{"class":502},[434,1984,517],{"class":448},[434,1986,1987],{"class":491},"s",[434,1989,541],{"class":448},[434,1991,544],{"class":502},[434,1993,517],{"class":448},[434,1995,550],{"class":549},[434,1997,553],{"class":448},[434,1999,2000],{"class":549},"\"DH5yaieqoZN36fDVciNyRueRGvGLR3mr7L\"",[434,2002,559],{"class":448},[434,2004,562],{"class":448},[434,2006,565],{"class":502},[434,2008,568],{"class":448},[434,2010,2011],{"class":436,"line":612},[434,2012,481],{"emptyLinePlaceholder":480},[434,2014,2015],{"class":436,"line":658},[434,2016,2017],{"class":661},"\u002F\u002F EVM-style hex with a required EIP-55 checksum.\n",[434,2019,2020,2022,2025,2027,2029,2031,2033,2035,2037,2040,2042,2044,2046,2048,2050,2052,2054,2056,2059,2061,2064,2066,2069,2071,2073,2075,2078,2080,2083],{"class":436,"line":665},[434,2021,488],{"class":487},[434,2023,2024],{"class":491}," evm ",[434,2026,495],{"class":448},[434,2028,1896],{"class":444},[434,2030,449],{"class":448},[434,2032,1923],{"class":502},[434,2034,517],{"class":448},[434,2036,653],{"class":448},[434,2038,2039],{"class":549},"evm",[434,2041,653],{"class":448},[434,2043,562],{"class":448},[434,2045,1796],{"class":502},[434,2047,517],{"class":448},[434,2049,653],{"class":448},[434,2051,1281],{"class":549},[434,2053,653],{"class":448},[434,2055,562],{"class":448},[434,2057,2058],{"class":502},"hex",[434,2060,506],{"class":448},[434,2062,2063],{"class":502},"payload_len",[434,2065,517],{"class":448},[434,2067,2068],{"class":440},"20",[434,2070,562],{"class":448},[434,2072,1806],{"class":502},[434,2074,517],{"class":448},[434,2076,2077],{"class":444},"Checksum",[434,2079,449],{"class":448},[434,2081,2082],{"class":444},"Eip55",[434,2084,527],{"class":448},[434,2086,2087],{"class":436,"line":912},[434,2088,481],{"emptyLinePlaceholder":480},[434,2090,2092],{"class":436,"line":2091},12,[434,2093,2094],{"class":661},"\u002F\u002F bech32m with two hrps and a 32-byte payload.\n",[434,2096,2098,2100,2103,2105,2107,2109,2111,2113,2115,2118,2120,2122,2125,2127,2129,2132,2134,2136,2138,2141,2143,2145,2147,2149,2152],{"class":436,"line":2097},13,[434,2099,488],{"class":487},[434,2101,2102],{"class":491}," chain ",[434,2104,495],{"class":448},[434,2106,1896],{"class":444},[434,2108,449],{"class":448},[434,2110,1923],{"class":502},[434,2112,517],{"class":448},[434,2114,653],{"class":448},[434,2116,2117],{"class":549},"chain",[434,2119,653],{"class":448},[434,2121,562],{"class":448},[434,2123,2124],{"class":502},"bech32m",[434,2126,1693],{"class":448},[434,2128,653],{"class":448},[434,2130,2131],{"class":549},"ch",[434,2133,653],{"class":448},[434,2135,749],{"class":448},[434,2137,647],{"class":448},[434,2139,2140],{"class":549},"tch",[434,2142,653],{"class":448},[434,2144,1944],{"class":448},[434,2146,2063],{"class":502},[434,2148,517],{"class":448},[434,2150,2151],{"class":440},"32",[434,2153,527],{"class":448},[434,2155,2157],{"class":436,"line":2156},14,[434,2158,481],{"emptyLinePlaceholder":480},[434,2160,2162],{"class":436,"line":2161},15,[434,2163,2164],{"class":661},"\u002F\u002F Ripple-alphabet Base58 with a CRC32 and a two-byte version.\n",[434,2166,2168,2170,2173,2175,2177,2179,2181,2183,2185,2188,2190],{"class":436,"line":2167},16,[434,2169,488],{"class":487},[434,2171,2172],{"class":491}," other ",[434,2174,495],{"class":448},[434,2176,1896],{"class":444},[434,2178,449],{"class":448},[434,2180,1923],{"class":502},[434,2182,517],{"class":448},[434,2184,653],{"class":448},[434,2186,2187],{"class":549},"other",[434,2189,653],{"class":448},[434,2191,790],{"class":448},[434,2193,2195,2197,2200,2202,2204,2206,2209],{"class":436,"line":2194},17,[434,2196,795],{"class":448},[434,2198,2199],{"class":502},"base58",[434,2201,517],{"class":448},[434,2203,1886],{"class":444},[434,2205,449],{"class":448},[434,2207,2208],{"class":444},"Ripple",[434,2210,790],{"class":448},[434,2212,2214,2216,2219,2222,2224,2226,2229],{"class":436,"line":2213},18,[434,2215,795],{"class":448},[434,2217,2218],{"class":502},"version_bytes",[434,2220,2221],{"class":448},"(&[&[",[434,2223,1138],{"class":440},[434,2225,749],{"class":448},[434,2227,2228],{"class":440}," 0x44",[434,2230,2231],{"class":448},"]])\n",[434,2233,2235,2237,2239,2241,2243,2245,2248],{"class":436,"line":2234},19,[434,2236,795],{"class":448},[434,2238,1806],{"class":502},[434,2240,517],{"class":448},[434,2242,2077],{"class":444},[434,2244,449],{"class":448},[434,2246,2247],{"class":444},"Crc32",[434,2249,790],{"class":448},[434,2251,2253,2255,2258,2260,2262,2264,2267],{"class":436,"line":2252},20,[434,2254,795],{"class":448},[434,2256,2257],{"class":502},"payload_len_range",[434,2259,517],{"class":448},[434,2261,2068],{"class":440},[434,2263,749],{"class":448},[434,2265,2266],{"class":440}," 32",[434,2268,527],{"class":448},[941,2270,2271,2280],{},[944,2272,2273],{},[947,2274,2275,2278],{},[950,2276,2277],{},"Builder",[950,2279,955],{},[957,2281,2282,2300,2318,2328,2341,2356,2369,2379,2411,2424,2437],{},[947,2283,2284,2289],{},[962,2285,2286],{},[393,2287,2288],{},"base58(Alphabet)",[962,2290,2291,2292,400,2295,400,2297],{},"plain Base58: ",[393,2293,2294],{},"Alphabet::Bitcoin",[393,2296,2208],{},[393,2298,2299],{},"Flickr",[947,2301,2302,2307],{},[962,2303,2304],{},[393,2305,2306],{},"base58check(&[versions])",[962,2308,2309,2310,2313,2314,2317],{},"Base58 (Bitcoin alphabet, change with ",[393,2311,2312],{},"alphabet(..)",") + ",[393,2315,2316],{},"Checksum::Sha256d"," + one leading version byte",[947,2319,2320,2325],{},[962,2321,2322],{},[393,2323,2324],{},"version_bytes(&[&[..]])",[962,2326,2327],{},"allowed leading version byte sequences (multi-byte)",[947,2329,2330,2338],{},[962,2331,2332,1009,2335],{},[393,2333,2334],{},"bech32(&[hrps])",[393,2336,2337],{},"bech32m(&[hrps])",[962,2339,2340],{},"BIP-173 \u002F BIP-350 with one of the hrps (any when empty); payload = regrouped data",[947,2342,2343,2348],{},[962,2344,2345],{},[393,2346,2347],{},"hex()",[962,2349,2350,2351,2353,2354,1236],{},"hex, either case (",[393,2352,1281],{}," goes in ",[393,2355,1796],{},[947,2357,2358,2366],{},[962,2359,2360,1009,2363],{},[393,2361,2362],{},"base64()",[393,2364,2365],{},"base64url()",[962,2367,2368],{},"canonical base64, padding optional",[947,2370,2371,2376],{},[962,2372,2373],{},[393,2374,2375],{},"prefix(\"…\")",[962,2377,2378],{},"literal before the encoded part",[947,2380,2381,2386],{},[962,2382,2383],{},[393,2384,2385],{},"checksum(Checksum)",[962,2387,2388,400,2391,400,2394,2397,2398,2400,2401,2404,2405,400,2408,2410],{},[393,2389,2390],{},"None",[393,2392,2393],{},"Sha256d",[393,2395,2396],{},"Keccak256"," (4 bytes), ",[393,2399,2082],{}," (hex case), ",[393,2402,2403],{},"Ss58"," (2 bytes blake2b), ",[393,2406,2407],{},"Crc16Xmodem",[393,2409,2247],{}," (big-endian)",[947,2412,2413,2421],{},[962,2414,2415,1009,2418],{},[393,2416,2417],{},"payload_len(n)",[393,2419,2420],{},"payload_len_range(min, max)",[962,2422,2423],{},"decoded payload bytes (after version, before checksum)",[947,2425,2426,2434],{},[962,2427,2428,1009,2431],{},[393,2429,2430],{},"length(n)",[393,2432,2433],{},"length_range(min, max)",[962,2435,2436],{},"characters, prefix included",[947,2438,2439,2444],{},[962,2440,2441],{},[393,2442,2443],{},"pattern(regex)",[962,2445,2446,2447,2450],{},"whole-address regex (feature ",[393,2448,2449],{},"regex","); with no encoding set, the template is pattern + length only",[389,2452,2453,2454,2457],{},"Checks run in this order: length, pattern, prefix, decoding, checksum, version, payload length. ",[393,2455,2456],{},"template.encode(&payload)"," builds the address of a payload (first version \u002F hrp), which is handy for fixtures.",[420,2459,2461],{"id":2460},"json-schema-typescript-fake-data","JSON Schema, TypeScript, fake data",[389,2463,2464,2465,400,2468,2471,2472,2475,2476,2479,2480,400,2483,400,2486,713],{},"The JSON Schema carries ",[393,2466,2467],{},"format: \"crypto-address\"",[393,2469,2470],{},"x-network"," (a name, or a list for ",[393,2473,2474],{},"crypto_address_any","), a ",[393,2477,2478],{},"pattern"," approximating the shape (never stricter than the check) and, when set, ",[393,2481,2482],{},"x-testnet",[393,2484,2485],{},"x-kinds",[393,2487,2488],{},"x-checksummed",[425,2490,2494],{"className":2491,"code":2492,"language":2493,"meta":430,"style":430},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{ \"type\": \"string\", \"format\": \"crypto-address\", \"x-network\": \"ethereum\",\n  \"pattern\": \"^(?:0x[0-9a-fA-F]{40})$\", \"x-checksummed\": true }\n","json",[393,2495,2496,2554],{"__ignoreMap":430},[434,2497,2498,2501,2503,2506,2508,2510,2512,2514,2516,2518,2520,2523,2525,2527,2529,2532,2534,2536,2538,2540,2542,2544,2546,2549,2551],{"class":436,"line":437},[434,2499,2500],{"class":448},"{",[434,2502,647],{"class":448},[434,2504,2505],{"class":487},"type",[434,2507,653],{"class":448},[434,2509,713],{"class":448},[434,2511,647],{"class":448},[434,2513,503],{"class":549},[434,2515,653],{"class":448},[434,2517,749],{"class":448},[434,2519,647],{"class":448},[434,2521,2522],{"class":487},"format",[434,2524,653],{"class":448},[434,2526,713],{"class":448},[434,2528,647],{"class":448},[434,2530,2531],{"class":549},"crypto-address",[434,2533,653],{"class":448},[434,2535,749],{"class":448},[434,2537,647],{"class":448},[434,2539,2470],{"class":487},[434,2541,653],{"class":448},[434,2543,713],{"class":448},[434,2545,647],{"class":448},[434,2547,2548],{"class":549},"ethereum",[434,2550,653],{"class":448},[434,2552,2553],{"class":448},",\n",[434,2555,2556,2559,2561,2563,2565,2567,2570,2572,2574,2576,2578,2580,2582,2585],{"class":436,"line":458},[434,2557,2558],{"class":448},"  \"",[434,2560,2478],{"class":487},[434,2562,653],{"class":448},[434,2564,713],{"class":448},[434,2566,647],{"class":448},[434,2568,2569],{"class":549},"^(?:0x[0-9a-fA-F]{40})$",[434,2571,653],{"class":448},[434,2573,749],{"class":448},[434,2575,647],{"class":448},[434,2577,2488],{"class":487},[434,2579,653],{"class":448},[434,2581,713],{"class":448},[434,2583,2584],{"class":448}," true",[434,2586,2587],{"class":448}," }\n",[389,2589,2590,2593,2594,2597,2598,2600,2601,1009,2603,2605,2606,2609],{},[393,2591,2592],{},"vld::ts"," generates the pattern as a regex with a comment that the checksum is not checked. ",[393,2595,2596],{},"vld::fake"," generates ",[415,2599,417],{}," addresses (random payload, correct version bytes and checksum) for every built-in network, Cosmos hrp and SS58 prefix, honouring ",[393,2602,2482],{},[393,2604,2485],{},"; ",[393,2607,2608],{},"CryptoNetwork::random_address(rng)"," does the same in Rust, for custom templates too.",[2611,2612,2613],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":430,"searchDepth":458,"depth":477,"links":2615},[2616,2617,2618,2622,2623],{"id":422,"depth":458,"text":423},{"id":698,"depth":458,"text":699},{"id":1087,"depth":458,"text":1088,"children":2619},[2620,2621],{"id":1603,"depth":477,"text":1604},{"id":1752,"depth":477,"text":1753},{"id":1846,"depth":458,"text":1847},{"id":2460,"depth":458,"text":2461},"vld::crypto — wallet addresses of Bitcoin, Ethereum, TRON, Solana, Cardano, Polkadot, TON, Monero and more, with real checksum rules, plus your own templates.","md",null,{},{"title":42,"description":2624},"1CQzLvouiANso2YKgUfKqUr25NHlS6MMKPIHdm8KrJw",[2631,2633],{"title":38,"path":39,"stem":40,"description":2632,"children":-1},"Reusable named checks (the Rule trait), closure rules, messages and translations by key, JSON Schema keywords, and reusable schemas.",{"title":46,"path":47,"stem":48,"description":2634,"children":-1},"f64 numbers, exact sized integers, f32, bounds, multiple_of and coercion from strings.",1795290654580]