{"id":48725482,"url":"https://github.com/BlockstreamResearch/shrincs-simplicity-verifier","last_synced_at":"2026-04-27T18:01:15.679Z","repository":{"id":345756635,"uuid":"1138194361","full_name":"BlockstreamResearch/shrincs-simplicity-verifier","owner":"BlockstreamResearch","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-03T12:19:10.000Z","size":25004,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T15:31:07.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BlockstreamResearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-20T11:07:23.000Z","updated_at":"2026-03-27T09:29:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/BlockstreamResearch/shrincs-simplicity-verifier","commit_stats":null,"previous_names":["blockstreamresearch/shrincs-simplicity-verifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BlockstreamResearch/shrincs-simplicity-verifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockstreamResearch%2Fshrincs-simplicity-verifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockstreamResearch%2Fshrincs-simplicity-verifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockstreamResearch%2Fshrincs-simplicity-verifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockstreamResearch%2Fshrincs-simplicity-verifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlockstreamResearch","download_url":"https://codeload.github.com/BlockstreamResearch/shrincs-simplicity-verifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlockstreamResearch%2Fshrincs-simplicity-verifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32348058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-11T22:00:26.714Z","updated_at":"2026-04-27T18:01:15.670Z","avatar_url":"https://github.com/BlockstreamResearch.png","language":"Shell","funding_links":[],"categories":["Projects"],"sub_categories":["Helpers"],"readme":"# SHRINCS Simplicity Verifier\nThis repo contains hash-based signatures that can protect Bitcoin against quantum computers\n\n\u003e *⚠️ This project is a work in progress and is provided as-is for research, learning, and experimentation. It is not production-ready and has not undergone a formal security audit, code review, or verification process. This library may be incorrect, incomplete, or insecure.*\n\n## 🛠 Requirements\nWe use `#include` and `#define` directives, so you may need to install `mcpp`:\n```shell\nbrew install mcpp\n```\n\n\u003e [!IMPORTANT]\n\u003e Currently, this project requires the bundled `./simfony` binary due to upstream incompatibilities in simfony-cli. This will be updated once the upstream issues are resolved.\n\n## 🔐 Signatures\n| Signature Scheme | File Path | Description |\n| :--- | :--- | :--- |\n| **Lamport** | `lamport.simf` | Lamport one-time signature implementation. |\n| **WOTS** | `wots.simf` | Winternitz One-Time Signature implementation. |\n| **SHRINCS** | `shrincs/shrincs.simf` | SHRINCS implementation. [C++](https://github.com/BlockstreamResearch/shrincs-cpp/tree/main). [📖 Read docs](./docs/shrincs_spec/main.pdf) |\n\n\u003e **Note:** Each signature contains method `X_verify` (where `X` is the scheme name) that verifies the validity of the signature for the corresponding message hash and public key\n\n## 🧪 Running tests\n* `make test` - runs all tests\n\n* `make lamport_example` - runs Lamport verification example\n\n* `make shrincs_example MODE={stateful|stateless}` - runs SHRINCS verification example\n    * *Use `MODE=stateful` for XMSS-based stateful trees or `MODE=stateless` for SPHINCS-like stateless verification.*\n\n## 🚀 Usage\nTo execute this code, import the required signature file using `#include` directive and then run:\n```bash\nmkdir -p target\nmcpp -P -I . your-file.simf -o target/your-file.simf\n```\n\nTo run the preprocessed file, run:\n```bash\n./simfony run --witness your-witness.wit target/your-file.simf\n```\n\n## 💻 Code example\n```rust\n#include \"./shrincs/shrincs.simf\"\n\nfn main() {\n    let message: u256 = ...;\n    let pk: (u128, u128) = ...;\n    let signature: Either\u003cUXMSSSignature, SPHINCSSignature\u003e = ...;\n    let known_pk_part: u128 = ...;\n\n    shrincs_verify((message, pk, signature, known_pk_part));\n}\n```\n\n\u003e 🧩 **Type Definitions:** Wondering how `UXMSSSignature` or `SPHINCSSignature` are structured under the hood? Check out the full type definitions in [`types.simf`](./types.simf).\n\n\u003e 📂 **More Examples:** For complete, runnable code including witness data setup, explore the [`examples/`](./examples) directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBlockstreamResearch%2Fshrincs-simplicity-verifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBlockstreamResearch%2Fshrincs-simplicity-verifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBlockstreamResearch%2Fshrincs-simplicity-verifier/lists"}