Methods
both(needle, haystack, silent) → {boolean}
Check both compressed and uncompressed.
Parameters:
Name | Type | Description |
---|---|---|
needle |
string | The string to search for. |
haystack |
Array | An array of addresses. |
silent |
boolean | Whether to output file and text |
Returns:
true on success.
- Type
- boolean
check(needle, haystack, wild, silent) → {boolean}
Check a needle in a haystack with possible * wildcard
Parameters:
Name | Type | Description |
---|---|---|
needle |
string | The string to search. |
haystack |
string | Array to search in. |
wild |
boolean | Whether * wildcards are used |
silent |
boolean | Whether to output file and text |
Returns:
true on success.
- Type
- boolean
strToAddr(str, uncompressed) → {Object}
Converts string to a bitcoin public key address
Parameters:
Name | Type | Description |
---|---|---|
str |
String | The string to be hashed |
uncompressed |
boolean | Uncompressed or not |
Returns:
Public Key Address
- Type
- Object
success(needle, file)
Prints success message and writes a file to data directory
Parameters:
Name | Type | Description |
---|---|---|
needle |
string | String that was checked. |
file |
string | The file to save to. |
test(needle, haystack, wild, silent) → {boolean}
Tests a needle against possible haystack.
Parameters:
Name | Type | Description |
---|---|---|
needle |
string | The string to search. |
haystack |
string | Array to search in. |
wild |
boolean | Whether * wildcards are used |
silent |
boolean | Whether to output file and text |
Returns:
true on success.
- Type
- boolean