Installation
Requirements
Python 3.10 or newer
A contact PC/SC smart card reader (for hardware operations)
On Linux, the PC/SC daemon (
pcscd) running:sudo systemctl start pcscd sudo systemctl enable pcscd
Install
The shamir-cli source package is supplied by Cryptnox with your card set.
Unpack it and install it from its directory. For hardware operations, include
the card extra (which pulls in pyscard):
cd shamir-cli # the directory supplied by Cryptnox
# With smart card support (physical cards)
pip install -e ".[card]"
# Or, for pure-software Shamir only (no reader)
pip install -e .
After installation, the shamir-cli command is available on your PATH.
Note
This is an editable install (-e): the command runs the source in
src/shamir_cli, so any update to the source is picked up immediately.
Do not move or delete that directory, or the command will break.
Verify the installation
shamir-cli --version
shamir-cli reader list
reader list should show your contact reader, for example:
┌───┬──────────────────────────┐
│ # │ Reader Name │
├───┼──────────────────────────┤
│ 0 │ <your contact reader> │
└───┴──────────────────────────┘
Insert an orchestrator card and confirm it responds:
shamir-cli orchestrator info
┌─────────┬──────────────────────────┐
│ Type │ O (Orchestrator) │
│ Version │ 0.9.2 │
│ State │ 0x00 - Initial (reset) │
└─────────┴──────────────────────────┘
Global options
Every command accepts these global options:
Option |
Effect |
|---|---|
|
Select a reader by partial name match (a substring of its name). |
|
Use the JCOP simulator on |
|
Simulator port (default |
|
Print the raw APDU traffic (for debugging). |
|
Suppress non-essential output. |
|
Emit machine-readable JSON (for scripting / integration). |
Selecting a reader
When several readers are connected, target one explicitly by a substring of
its name (as shown by reader list):
shamir-cli -r "<reader-name>" orchestrator info
The match is a case-insensitive substring of the reader name.