{"id":21439,"library":"hsms","title":"hsms","description":"Hardware security module simulator for Chia BLS12-381 signatures. Current version 0.3.2, stable release cadence is low.","status":"active","version":"0.3.2","language":"python","source_language":"en","source_url":"https://github.com/Chia-Network/hsms","tags":["hardware-security-module","bls-signatures","chia","simulator"],"install":[{"cmd":"pip install hsms","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Top-level import only; internal modules are private.","wrong":"from hsms.key import Key","symbol":"Key","correct":"from hsms import Key"},{"note":"sign is a top-level function.","wrong":"from hsms.sign import sign","symbol":"sign","correct":"from hsms import sign"}],"quickstart":{"code":"from hsms import Key, sign\nkey = Key()\nmessage = b\"hello\"\nsignature = sign(message, key)\nprint(signature)","lang":"python","description":"Generate a key and sign a message."},"warnings":[{"fix":"Use 'from hsms import Key, sign'.","message":"Internal module structure changed in 0.3.0. Importing from 'hsms.key' or 'hsms.sign' will break.","severity":"breaking","affected_versions":"0.3.0+"},{"fix":"Use only for testing or development.","message":"The library is a simulator, not a real HSM. Do not use for production security.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install hsms' in the correct Python environment.","cause":"hsms not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'hsms'"},{"fix":"Use 'from hsms import Key' instead of 'from hsms.key import Key'.","cause":"Incorrect import path, likely using submodule.","error":"ImportError: cannot import name 'Key' from 'hsms' (unknown location)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}