Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 35 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,47 @@ The conformance golden files in `tests/conformance/` are generated by Pipelock's

## Install

```bash
pip install pipelock-verify
With Python 3.10 or later, create a virtual environment in an empty working directory.
On Debian or Ubuntu, install the matching `python3-venv` package if Python reports
that `ensurepip` is unavailable.

On macOS or Linux:

```sh
python3 -m venv .venv
. .venv/bin/activate
Comment thread
luckyPipewrench marked this conversation as resolved.
Resolved
python -m pip install pipelock-verify
pipelock-verify --version
```

On Windows, use Command Prompt:

```bat
py -3 -m venv .venv
.venv\Scripts\activate.bat
python -m pip install pipelock-verify
pipelock-verify --version
```

After installation, you can also run `.venv\Scripts\pipelock-verify.exe`
directly from the working directory without activating the environment.

To check your installation, download a signed sample receipt and verify it with
its public test key:

```sh
curl -fsSLo receipt.json https://raw.githubusercontent.com/pipelab-org/pipelock-verify-python/v0.4.1/tests/conformance/valid-single.json
pipelock-verify receipt.json --key 4655a7e605c12ebb00a46037881c33c5bca5eb74b45a02e8e7261a7ff5a21678
```

The verifier prints `OK: receipt.json` and action ID `conformance-00000`.
For your own receipts, use the public key you trust for your signer.

Only one runtime dependency: [`cryptography`](https://cryptography.io) for the Ed25519 primitives.

## Receipt v3-core

Verify v3 evidence with a trusted signer key (repeat `--key` for multiple keys):
The v3 command requires version 0.5.0 or later. Verify v3 evidence with a trusted signer key (repeat `--key` for multiple keys):

```bash
pipelock-verify v3 --key PUBLIC_KEY_HEX --output result -- evidence-directory
Expand Down
Loading