hsms

raw JSON →
0.3.2 verified Mon Apr 27 auth: no python

Hardware security module simulator for Chia BLS12-381 signatures. Current version 0.3.2, stable release cadence is low.

pip install hsms
error ModuleNotFoundError: No module named 'hsms'
cause hsms not installed or installed in wrong environment.
fix
Run 'pip install hsms' in the correct Python environment.
error ImportError: cannot import name 'Key' from 'hsms' (unknown location)
cause Incorrect import path, likely using submodule.
fix
Use 'from hsms import Key' instead of 'from hsms.key import Key'.
breaking Internal module structure changed in 0.3.0. Importing from 'hsms.key' or 'hsms.sign' will break.
fix Use 'from hsms import Key, sign'.
gotcha The library is a simulator, not a real HSM. Do not use for production security.
fix Use only for testing or development.

Generate a key and sign a message.

from hsms import Key, sign
key = Key()
message = b"hello"
signature = sign(message, key)
print(signature)