Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Python Keymaster Library

Reusable Python implementation of the Archon Keymaster business logic.

This package is intended to hold the core wallet, DID, crypto, and asset behaviors independent of any specific HTTP service runtime. It also exposes the Python keymaster CLI, which mirrors the TypeScript Keymaster CLI command surface while using this library in-process against a Gatekeeper HTTP endpoint and local wallet file.

Install

pip install archon-keymaster

For local development from a repo checkout:

pip install -e python/keymaster

CLI usage

export ARCHON_PASSPHRASE=your-passphrase
export ARCHON_GATEKEEPER_URL=http://localhost:4224
export ARCHON_WALLET_PATH=./wallet.json

keymaster --help
keymaster create-wallet
keymaster create-id alice
keymaster list-ids

CLI environment variables

Variable Default Description
ARCHON_NODE_URL / ARCHON_GATEKEEPER_URL http://localhost:4224 Gatekeeper HTTP endpoint
ARCHON_WALLET_PATH ./wallet.json Path to wallet file
ARCHON_PASSPHRASE (required) Wallet passphrase
ARCHON_DEFAULT_REGISTRY hyperswarm Default registry for new DIDs