-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Day60 added mnemonic phrase generated
- Loading branch information
1 parent
60ba7db
commit 2ccb5d4
Showing
167 changed files
with
487 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "bipPhrase" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
bip39 = "2.1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use bip39::{Mnemonic, Language}; | ||
|
||
fn main() { | ||
// Generate a 12-word mnemonic phrase | ||
let mnemonic = Mnemonic::generate_in(Language::English, 12).unwrap(); | ||
|
||
// Print the mnemonic phrase | ||
println!("Generated Mnemonic: {}", mnemonic.phrase()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc_fingerprint":570270865607400013,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\misha\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"cmpxchg16b\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.83.0 (90b35a623 2024-11-26)\nbinary: rustc\ncommit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf\ncommit-date: 2024-11-26\nhost: x86_64-pc-windows-msvc\nrelease: 1.83.0\nLLVM version: 19.1.1\n","stderr":""}},"successes":{}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Signature: 8a477f597d28d172789f06886806bc55 | ||
# This file is a cache directory tag created by cargo. | ||
# For information about cache directory tags see https://bford.info/cachedir/ |
Empty file.
Binary file added
BIN
+8 Bytes
Day60/bipPhrase/target/debug/.fingerprint/bip39-798ce3a6db190578/dep-lib-bip39
Binary file not shown.
1 change: 1 addition & 0 deletions
1
Day60/bipPhrase/target/debug/.fingerprint/bip39-798ce3a6db190578/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
Day60/bipPhrase/target/debug/.fingerprint/bip39-798ce3a6db190578/lib-bip39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fad69b11a466d846 |
1 change: 1 addition & 0 deletions
1
Day60/bipPhrase/target/debug/.fingerprint/bip39-798ce3a6db190578/lib-bip39.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":8713626761367032038,"features":"[\"alloc\", \"default\", \"serde\", \"std\", \"unicode-normalization\"]","declared_features":"[\"all-languages\", \"alloc\", \"chinese-simplified\", \"chinese-traditional\", \"crate_rand\", \"czech\", \"default\", \"french\", \"italian\", \"japanese\", \"korean\", \"portuguese\", \"rand\", \"rand_core\", \"serde\", \"spanish\", \"std\", \"unicode-normalization\", \"zeroize\"]","target":10535671895190576300,"profile":12206360443249279867,"path":9735902330737027360,"deps":[[3424243558869601599,"bitcoin_hashes",false,4639155768426179726],[13045448243684967688,"serde",false,12875944934584820948],[16365583730529448052,"unicode_normalization",false,14901362859641587199]],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\bip39-798ce3a6db190578\\dep-lib-bip39","checksum":false}}],"rustflags":[],"metadata":18423595081734065815,"config":2202906307356721367,"compile_kind":0} |
Binary file added
BIN
+8 Bytes
Day60/bipPhrase/target/debug/.fingerprint/bip39-9ba377bff755d61b/dep-lib-bip39
Binary file not shown.
1 change: 1 addition & 0 deletions
1
Day60/bipPhrase/target/debug/.fingerprint/bip39-9ba377bff755d61b/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
Day60/bipPhrase/target/debug/.fingerprint/bip39-9ba377bff755d61b/lib-bip39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
24316735e1298280 |
1 change: 1 addition & 0 deletions
1
Day60/bipPhrase/target/debug/.fingerprint/bip39-9ba377bff755d61b/lib-bip39.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":8713626761367032038,"features":"[\"alloc\", \"default\", \"serde\", \"std\", \"unicode-normalization\"]","declared_features":"[\"all-languages\", \"alloc\", \"chinese-simplified\", \"chinese-traditional\", \"crate_rand\", \"czech\", \"default\", \"french\", \"italian\", \"japanese\", \"korean\", \"portuguese\", \"rand\", \"rand_core\", \"serde\", \"spanish\", \"std\", \"unicode-normalization\", \"zeroize\"]","target":10535671895190576300,"profile":10243973527296709326,"path":9735902330737027360,"deps":[[3424243558869601599,"bitcoin_hashes",false,7304444703449104263],[13045448243684967688,"serde",false,4219428137420399401],[16365583730529448052,"unicode_normalization",false,9204237658065634293]],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\bip39-9ba377bff755d61b\\dep-lib-bip39","checksum":false}}],"rustflags":[],"metadata":18423595081734065815,"config":2202906307356721367,"compile_kind":0} |
1 change: 1 addition & 0 deletions
1
Day60/bipPhrase/target/debug/.fingerprint/bipPhrase-64ee4c479cee0ee0/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
3 changes: 3 additions & 0 deletions
3
Day60/bipPhrase/target/debug/.fingerprint/bipPhrase-64ee4c479cee0ee0/output-bin-bipPhrase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"$message_type":"diagnostic","message":"no function or associated item named `generate_in` found for struct `Mnemonic` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":117,"byte_end":128,"line_start":5,"line_end":5,"column_start":30,"column_end":41,"is_primary":true,"text":[{"text":" let mnemonic = Mnemonic::generate_in(Language::English, 12).unwrap();","highlight_start":30,"highlight_end":41}],"label":"function or associated item not found in `Mnemonic`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"if you're trying to build a new `Mnemonic` consider using one of the following associated functions:\nMnemonic::from_entropy_in\nMnemonic::from_entropy\nMnemonic::parse_in_normalized\nMnemonic::parse_in_normalized_without_checksum_check\nand 3 others","code":null,"level":"note","spans":[{"file_name":"C:\\Users\\misha\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\bip39-2.1.0\\src\\lib.rs","byte_start":6182,"byte_end":6267,"line_start":204,"line_end":204,"column_start":2,"column_end":87,"is_primary":true,"text":[{"text":"\tpub fn from_entropy_in(language: Language, entropy: &[u8]) -> Result<Mnemonic, Error> {","highlight_start":2,"highlight_end":87}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"C:\\Users\\misha\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\bip39-2.1.0\\src\\lib.rs","byte_start":7404,"byte_end":7466,"line_start":250,"line_end":250,"column_start":2,"column_end":64,"is_primary":true,"text":[{"text":"\tpub fn from_entropy(entropy: &[u8]) -> Result<Mnemonic, Error> {","highlight_start":2,"highlight_end":64}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"C:\\Users\\misha\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\bip39-2.1.0\\src\\lib.rs","byte_start":13240,"byte_end":13322,"line_start":434,"line_end":434,"column_start":2,"column_end":84,"is_primary":true,"text":[{"text":"\tpub fn parse_in_normalized(language: Language, s: &str) -> Result<Mnemonic, Error> {","highlight_start":2,"highlight_end":84}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"C:\\Users\\misha\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\bip39-2.1.0\\src\\lib.rs","byte_start":14788,"byte_end":14901,"line_start":486,"line_end":489,"column_start":2,"column_end":30,"is_primary":true,"text":[{"text":"\tpub fn parse_in_normalized_without_checksum_check(","highlight_start":2,"highlight_end":52},{"text":"\t\tlanguage: Language,","highlight_start":1,"highlight_end":22},{"text":"\t\ts: &str,","highlight_start":1,"highlight_end":11},{"text":"\t) -> Result<Mnemonic, Error> {","highlight_start":1,"highlight_end":30}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0599]\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: no function or associated item named `generate_in` found for struct `Mnemonic` in the current scope\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m--> \u001b[0m\u001b[0msrc/main.rs:5:30\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m5\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m...\u001b[0m\u001b[0memonic = Mnemonic::generate_in(Language::English, 12).unw\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m...\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9mfunction or associated item not found in `Mnemonic`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;10mnote\u001b[0m\u001b[0m: if you're trying to build a new `Mnemonic` consider using one of the following associated functions:\u001b[0m\n\u001b[0m Mnemonic::from_entropy_in\u001b[0m\n\u001b[0m Mnemonic::from_entropy\u001b[0m\n\u001b[0m Mnemonic::parse_in_normalized\u001b[0m\n\u001b[0m Mnemonic::parse_in_normalized_without_checksum_check\u001b[0m\n\u001b[0m and 3 others\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m--> \u001b[0m\u001b[0mC:\\Users\\misha\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\bip39-2.1.0\\src\\lib.rs:204:2\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m204\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m pub fn from_entropy_in(language: Language, entropy: &[u8]) -> Result<Mnemonic, Error\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m...\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m...\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m250\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m pub fn from_entropy(entropy: &[u8]) -> Result<Mnemonic, Error> {\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m...\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m434\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m pub fn parse_in_normalized(language: Language, s: &str) -> Result<Mnemonic, Error> {\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m...\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m486\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m/\u001b[0m\u001b[0m \u001b[0m\u001b[0m pub fn parse_in_normalized_without_checksum_check(\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m487\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m language: Language,\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m488\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m s: &str,\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m489\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m ) -> Result<Mnemonic, Error> {\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m|________________________________^\u001b[0m\n\n"} | ||
{"$message_type":"diagnostic","message":"aborting due to 1 previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: aborting due to 1 previous error\u001b[0m\n\n"} | ||
{"$message_type":"diagnostic","message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;15mFor more information about this error, try `rustc --explain E0599`.\u001b[0m\n"} |
1 change: 1 addition & 0 deletions
1
Day60/bipPhrase/target/debug/.fingerprint/bipPhrase-6734f1524b472f61/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
Oops, something went wrong.