hashproof
v0.1.0
Published
CLI for the Hashproof Content Provenance API
Downloads
160
Maintainers
Readme
hashproof
Command line interface for the Hashproof Content Provenance API. Verify, store, resolve, and fingerprint digital assets from the terminal.
Install
Run it without installing, using npx:
npx hashproof statusOr install it globally:
npm install -g hashproofAuthentication
The verify, store, resolve, and fingerprint commands require an API key. Keys start with hpsk_. Save one with:
hashproof config set-key hpsk_your_keyYou can also provide the key through the environment, which takes precedence over the saved key:
export HASHPROOF_API_KEY=hpsk_your_keyThe status command does not require a key.
Commands
hashproof verify <file> # Check a file's content provenance
hashproof store <file> # Store a C2PA manifest for a file
hashproof resolve <file> # Resolve provenance by soft binding
hashproof fingerprint <file> # Compute a perceptual fingerprint
hashproof status # Report API service status
hashproof config set-key <key> # Save your API key
hashproof config set-url <url> # Set a custom API base URL
hashproof config show # Show the current configurationstore accepts --title (-t) to set an asset title. fingerprint accepts --algorithm (-a), which defaults to phash-dct-64.
Configuration
Configuration is stored at ~/.hashproof/config.json. Two environment variables override the saved values:
HASHPROOF_API_KEYoverrides the saved API key.HASHPROOF_BASE_URLoverrides the API base URL. The default ishttps://api.hashproof.ai.
License
MIT
