Alice makes a key pair
priv, pub = hawkkeygen(9)
- Private
- –
- Public
- –
- Time
- –
Hawk · hash-and-sign lattice signature
Starts Python in this page (Pyodide 0.29.5, with NumPy and SymPy), imports the repo’s hawk_crypto package unmodified, then generates a Hawk-512 key pair, signs a message and verifies it on your device. Then tamper with what Bob receives and watch verification fail.
About 12.6 MB from cdn.jsdelivr.net, cached after the first run. Nothing you type leaves the page.
priv, pub = hawkkeygen(9)
Tamper with what Bob receives
The repo’s tests/test_hawk.py under pytest 8.3.5 (about 1.6 MB more): round trips, sizes against the spec, tampering, wrong keys, random input and the decoder-fix regressions, for Hawk-256 and Hawk-512 as the repo runs by default. Takes a few seconds to half a minute.