From 3cce59e528730ac7a4da11984452067d976dbb64 Mon Sep 17 00:00:00 2001 From: majorpakhom Date: Thu, 14 Jan 2021 17:00:13 +0300 Subject: [PATCH 1/2] chore: add regaddralias to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7f1f3ee..94d6982 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ keyinfo famtool i2pbase64 regaddr +regaddralias routerinfo vain b33address From 284b6777b28089d0b22ed7c4301a22cc6c85e4d6 Mon Sep 17 00:00:00 2001 From: majorpakhom Date: Thu, 14 Jan 2021 17:03:11 +0300 Subject: [PATCH 2/2] fix(vanitygen): base32 alphabet for check_prefix Only [a-z2-7] characters are allowed in base32. --- vanitygen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vanitygen.cpp b/vanitygen.cpp index 1d65f8f..982d09d 100644 --- a/vanitygen.cpp +++ b/vanitygen.cpp @@ -73,7 +73,7 @@ static bool check_prefix(const char * buf) unsigned short size_str=0; while(*buf) { - if(*buf < 48 || (*buf > 57 && *buf < 65) || (*buf > 64 && *buf < 94) || *buf > 125 || size_str > 52) + if(!((*buf > 49 && *buf < 56) || (*buf > 96 && *buf < 123)) || size_str > 52) return false; size_str++; buf++;