{"id":50486853,"url":"https://github.com/systemslibrarian/crypto-lab-lms-xmss","last_synced_at":"2026-06-01T23:02:39.782Z","repository":{"id":352477681,"uuid":"1215251081","full_name":"systemslibrarian/crypto-lab-lms-xmss","owner":"systemslibrarian","description":"Browser-based Leighton-Micali Signatures (LMS) and Hierarchical Signature System (HSS) demo per RFC 8554 and NIST SP 800-208. LM-OTS + Merkle trees + two-level HSS, with the state-management story told honestly.","archived":false,"fork":false,"pushed_at":"2026-04-19T19:33:34.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-19T20:29:13.616Z","etag":null,"topics":["crypto-lab","cryptography","digital-signatures","hash-based-cryptography","hash-based-signatures","hierarchical-signature-system","hss","leighton-micali-signatures","lm-ots","lms","merkle-signatures","merkle-tree","nist-sp-800-208","post-quantum-cryptography","rfc-8554","sha-256","stateful-signatures","winternitz","xmss"],"latest_commit_sha":null,"homepage":"https://systemslibrarian.github.io/crypto-lab-lms-xmss/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/systemslibrarian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-19T17:16:57.000Z","updated_at":"2026-04-19T19:33:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/systemslibrarian/crypto-lab-lms-xmss","commit_stats":null,"previous_names":["systemslibrarian/crypto-lab-lms-xmss"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/systemslibrarian/crypto-lab-lms-xmss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemslibrarian%2Fcrypto-lab-lms-xmss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemslibrarian%2Fcrypto-lab-lms-xmss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemslibrarian%2Fcrypto-lab-lms-xmss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemslibrarian%2Fcrypto-lab-lms-xmss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/systemslibrarian","download_url":"https://codeload.github.com/systemslibrarian/crypto-lab-lms-xmss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemslibrarian%2Fcrypto-lab-lms-xmss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33797128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto-lab","cryptography","digital-signatures","hash-based-cryptography","hash-based-signatures","hierarchical-signature-system","hss","leighton-micali-signatures","lm-ots","lms","merkle-signatures","merkle-tree","nist-sp-800-208","post-quantum-cryptography","rfc-8554","sha-256","stateful-signatures","winternitz","xmss"],"created_at":"2026-06-01T23:02:37.914Z","updated_at":"2026-06-01T23:02:39.777Z","avatar_url":"https://github.com/systemslibrarian.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crypto-lab-lms-xmss\n\nBrowser-based educational demo of Leighton-Micali Signatures (LMS) and the Hierarchical Signature System (HSS), following RFC 8554 and NIST SP 800-208 using SHA-256.\n\n\u003e \"Whether therefore ye eat, or drink, or whatsoever ye do, do all to the glory of God.\"\n\u003e 1 Corinthians 10:31\n\n## What It Is\n\nThis project demonstrates stateful hash-based signatures in the browser:\n\n- LM-OTS (Winternitz one-time signatures), parameter set `LMOTS_SHA256_N32_W8`\n- LMS Merkle signatures, parameter set `LMS_SHA256_M32_H10` (1024 signatures per tree)\n- Two-level HSS hierarchy (root `H=5`, leaf `H=10`) for 32,768 total signatures\n\nAll hashing uses Web Crypto `subtle.digest('SHA-256', ...)`.\n\nThe UI is built as five exhibits focused on the key operational fact most demos skip: LMS is stateful, and index reuse is catastrophic.\n\n## When to Use It\n\nUse this demo when you need to:\n\n- Teach the difference between stateful hash-based signatures (LMS/XMSS) and stateless schemes (SLH-DSA)\n- Show why LMS can have tighter signature sizes than stateless hash-based alternatives\n- Demonstrate Merkle-authentication-path verification step by step\n- Explain why production LMS deployments require strict state governance (HSM counters, ceremonies, locks)\n\nDo not use this code as production signing infrastructure. It is intentionally educational and browser-first.\n\n## Live Demo\n\nhttps://systemslibrarian.github.io/crypto-lab-lms-xmss/\n\n## What Can Go Wrong\n\n- State reuse destroys security: signing two different messages with the same LMS/LM-OTS index can leak enough structure to enable forgery.\n- Key exhaustion is real: `H=10` means exactly 1024 signatures for one LMS tree.\n- HSS delays exhaustion, it does not remove it: eventually root-tree slots run out too.\n- Browser storage is not an HSM: this demo persists used indexes in localStorage for teaching, not for high-assurance key custody.\n- Key generation cost is non-trivial in pure TypeScript/Web Crypto for large trees.\n\n## Real-World Usage\n\nLMS/XMSS were deployed in real firmware and platform trust chains before the latest lattice standards were finalized:\n\n- Cisco firmware-signing paths\n- AWS Nitro-related signing and attestation paths\n- TPM 2.0 optional support tracks\n- HSM and long-term-signature ecosystems where auditable state is feasible\n\nWhy teams still pick LMS in those niches:\n\n- Security assumption is hash-based (collision/second-preimage resistance of SHA-256 family)\n- Signature sizes are practical for many firmware and boot-chain contexts\n- Operational model matches bounded-signature workflows with strong process controls\n\n---\n\n## Development\n\n```bash\nnpm install\nnpm run dev\nnpm run build\n```\n\nPhase gates:\n\n```bash\nnpm run gate:phase1\nnpm run gate:phase2\nnpm run gate:phase3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemslibrarian%2Fcrypto-lab-lms-xmss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemslibrarian%2Fcrypto-lab-lms-xmss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemslibrarian%2Fcrypto-lab-lms-xmss/lists"}