mirror of
https://github.com/FuelLabs/sway.git
synced 2025-08-08 12:48:36 +00:00
![]() ## Description Support for Bech32 case-insensitive vanity address generation via `forc-crypto` CLI tool. Usage: ```sh forc-crypto vanity --help ``` CLI options: ``` Generate a vanity address Usage: forc-crypto vanity [OPTIONS] Options: --starts-with <HEX_STRING> Desired hex string prefix for the address --ends-with <HEX_STRING> Desired hex string suffix for the address --regex <PATTERN> Desired regex pattern to match the entire address (case-insensitive) --timeout <SECONDS> Timeout in seconds for address generation --mnemonic Return mnemonic with address (default false) --save-path <PATH> Path to save the generated vanity address to -h, --help Print help -V, --version Print version Generate vanity addresses for the Fuel blockchain ``` ## Example outputs ```sh # > forc-crypto vanity --starts-with 0 --ends-with F Starting to generate vanity address... Successfully found vanity address in 0.012 seconds. Address: 0d3c399e756dee9f7312215882f92685fdae25449bc74f33c31063000d68afdf PrivateKey: cec536d4f5aae64685856ad36818777ba0aed349bdef848b487d6ebb1cc2a0a4 ``` ```sh # > forc-crypto vanity --starts-with 0 --ends-with F --mnemonic Starting to generate vanity address... Successfully found vanity address in 0.141 seconds. Address: 030b8484305c9f3af7b662d9fdd88dc75bdceb29f42d0f5ea5f72d3dfaf9380f Mnemonic: found broccoli trap left thought attack quality smooth patrol enrich fault flavor legend amused monitor shoulder legend blast elbow custom dirt cotton tackle much PrivateKey: 269ee26dd810a4a2df72969ed8941fe92ddc0bab236715535b867448c3ffa25e ``` ## Relevant issues - https://github.com/FuelLabs/sway/issues/6664 --------- Co-authored-by: Sophie Dankel <47993817+sdankel@users.noreply.github.com> Co-authored-by: Kaya Gökalp <kaya.gokalp@fuel.sh> |
||
---|---|---|
.. | ||
bench_main.rs |