CLI tool for managing Bitcoin Mini private keys.
This tool provides the following functionalities:
- Validation: Check if a given MiniKey is valid.
- Generation: Generate new 30-character MiniKeys.
- Conversion:
- MiniKey → HEX private key.
- HEX private key → Wallet Import Format (WIF).
- Verification: Confirm that a WIF key matches its original MiniKey.
- Full Workflow: Validate MiniKeys, convert to HEX, and generate WIF keys.
- Description:
CLI tool for managing Bitcoin Mini private keys.
This tool provides the following functionalities:
- Validation: Check if a given MiniKey is valid.
- Generation: Generate new 30-character MiniKeys.
- Conversion:
- MiniKey → HEX private key.
- HEX private key → Wallet Import Format (WIF).
- Verification: Confirm that a WIF key matches its original MiniKey.
- Full Workflow: Validate MiniKeys, convert to HEX, and generate WIF keys.
- Source:
Requires
- module:commander
- module:@core/logger
- module:@classes/MiniKeyConverter
- module:@core/output
- module:config/config.json
Members
(inner, constant) Converter :MiniKeyConverter
Instance of the MiniKeyConverter class.
Type:
(inner, constant) LOG_LEVEL :string
- Description:
Set default log level from configuration file or fallback to 'info'.
- Source:
Set default log level from configuration file or fallback to 'info'.
Type:
- string
Methods
(inner) LoggingLevelOptions()
(inner) generate()
- Description:
Command: Generate a new MiniKey and convert it to HEX and WIF formats.
- Source:
(inner) process(minikey)
Parameters:
Name | Type | Description |
---|---|---|
minikey |
string | The Mini private key to process. |
(inner) to-hex(minikey)
Parameters:
Name | Type | Description |
---|---|---|
minikey |
string | The Mini private key to convert. |
(inner) to-wif(hexkey, testnetopt, compressedopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
hexkey |
string | The HEX private key to convert. |
||
testnet |
boolean |
<optional> |
false
|
Generate a testnet WIF key. |
compressed |
boolean |
<optional> |
false
|
Generate a compressed WIF key. |
(inner) validate(minikey)
Parameters:
Name | Type | Description |
---|---|---|
minikey |
string | The Mini private key to validate. |
(inner) verify(minikey, wifkey)
Parameters:
Name | Type | Description |
---|---|---|
minikey |
string | The Mini private key. |
wifkey |
string | The Wallet Import Format key. |