commit f6a77d6a00c00e90a8e339146551446e328fbb01
parent 3fbd02cd32cd641e629813353a9436d46eddcef9
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Wed, 22 Jan 2020 00:55:22 +1100
Add readme and drop min van len
Diffstat:
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -0,0 +1,13 @@
+# Bitcoin Vanity Address Generator
+
+## Dependencies
+* libsep256k1
+* openssl
+## Compilation
+```
+gcc niceBit.c -o niceBit -lcrypto -lsecp256k1
+```
+## Usage
+```
+./niceBit
+```
diff --git a/niceBit.c b/niceBit.c
@@ -58,7 +58,9 @@ void gen_keypair(unsigned char *seckey, unsigned char *pubaddress) {
printf("\n\n");
*/
- /* Generate Public Address */
+ /* Generate Public Address
+ * (from create_pubkey.h)
+ */
coin_encode(public_key64, pubaddress);
}
@@ -69,7 +71,7 @@ int check_vanity(unsigned char *pubaddress) {
/* For each vanity length
* ('len' digits in a row)
*/
- for(int len=10; len>4; len--) {
+ for(int len=10; len>3; len--) {
/* For each digit 1-9 */
for(int i=0; i<10; i++) {