WebSocket client + CLI harness + pytest suite that exercises each axis of a CKBunker + Coldcard Mk4 policy and asserts the expected outcomes, including the critical negative test that a large PSBT without TOTP is rejected with a specific 'rule #1: need user(s) confirmation' reason. Configuration via .env / YAML / CLI flags, two pre-crafted test PSBTs as fixtures (generation guide in fixtures/README.md), dashboard counter scraper as sanity check, design rationale in docs/.
24 lines
628 B
Python
24 lines
628 B
Python
"""CKBunker HSM production validation harness.
|
|
|
|
Public API:
|
|
Client — low-level WebSocket client (connect, upload, sign)
|
|
SignResult — dataclass describing one signing attempt
|
|
Harness — high-level test runner used by hsm_validate.py
|
|
load_config — merge env + YAML + CLI into a Config object
|
|
"""
|
|
|
|
from .client import Client, SignResult, SignStatus
|
|
from .harness import Harness
|
|
from .config import Config, load_config
|
|
|
|
__all__ = [
|
|
"Client",
|
|
"SignResult",
|
|
"SignStatus",
|
|
"Harness",
|
|
"Config",
|
|
"load_config",
|
|
]
|
|
|
|
__version__ = "1.0.0"
|