Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add sorting of the results
  • Loading branch information
Will committed Nov 2, 2018
commit a4ac02b3881db83393e7246568e7281c5f654412
6 changes: 6 additions & 0 deletions subkey/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ returns:
- Address : 5DHsZCnuPqzHnXFW1subSTgnLD3zcFbJ3Q2bFcZ1Bmj5xFMw
- Hex seed : 0x364712b4a74784c605d01547f4cec951049e280d5a47aad2c7e9f06b2f7ad321
- Seed : 1c328aea576a252c80a91a2b1c08312c095320b04f2f6d264eeb50b9d544fd4d

== Running forever until your favorite key shows up

while true; do cargo run -- vanity AAA -c -m 80; done

Then stop with CTRL+C
1 change: 1 addition & 0 deletions subkey/src/vanity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ pub fn generate_keys(
};
}

result.sort_by(|a,b| b.score.partial_cmp(&a.score).unwrap_or(std::cmp::Ordering::Equal));
result
}

Expand Down