Skip to content

Commit 2f965e3

Browse files
Simplify base-58 input for user and move the complexity to code.
1 parent ef4f028 commit 2f965e3

File tree

5 files changed

+212
-165
lines changed

5 files changed

+212
-165
lines changed

Src/FinderOuter/Backend/Constants.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ public struct Constants
1111
public const string Base16Chars = "0123456789abcdef";
1212
public const string Symbols = "!@#$%^&*_-+=?";
1313

14-
public const char CompPrivKeyChar1 = 'K';
15-
public const char CompPrivKeyChar2 = 'L';
16-
public const char UncompPrivKeyChar = '5';
17-
public const int CompPrivKeyLen = 52;
18-
public const int UncompPrivKeyLen = 51;
14+
public const char PrivKeyCompChar1 = 'K';
15+
public const char PrivKeyCompChar2 = 'L';
16+
public const char PrivKeyUncompChar = '5';
17+
public const int PrivKeyCompWifLen = 52;
18+
public const int PrivKeyUncompWifLen = 51;
1919
public const byte PrivKeyFirstByte = 0x80;
20-
public const byte CompPrivKeyLastByte = 1;
20+
public const byte PrivKeyCompLastByte = 1;
21+
22+
public const int PrivKeyHexLen = 64;
2123
}
2224
}

0 commit comments

Comments
 (0)