登录 注册
其他
11,206
Stars
46
Forks
14
Watchers
7
Open Issues
AGPL-3.0
许可证
Rust
语言
2025-03-19
创建时间
2026-11-06
最近更新

项目能做什么

基于 Rust 实现的抗量子哈希签名算法库。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# hashsigs-rs

Core Rust hash-signature workspace with:

- `hashsigs-rs`: one crate containing:
  - `wotsplus` — the standalone WOTS+ one-time signature scheme (v1, legacy)
  - `sphincs_plus_c` — the stateless SPHINCS+C scheme
  - `shrincs` — the hybrid SHRINCS signer / verifier
  - `wasm` — verifier / signer bindings
- `solana/`: verify-only Solana program, plus an account-wrapper example at
  `solana/examples/shrincs-account/`
- `ts/`: `@quip.network/hashsigs-wasm`, the npm wrapper for the wasm build
- `py/`: the Python package scaffold (`hashsigs`). The binding API is under
  construction

This crate is the reference signer: it generates the golden vectors that
anchor the Solidity verifier in
[`hashsigs-solidity`](https://gitlab.com/quip.network/hashsigs-solidity).

## The SHRINCS construction

SHRINCS is a two-path hash-based signature construction
([ePrint 2025/2203](https://eprint.iacr.org/2025/2203), appendix). One
committed key bundle carries two verification paths with different costs and
budgets:

- **Stateful path (cheap, bounded).** A WOTS-C one-time signature under an
  unbalanced XMSS-style Merkle tree (UXMSS). Normal operations use this path.
  Each signature consumes one leaf, up to `maxSignatures` (at most 4,096).
- **Stateless path (expensive, break-glass).** A full SPHINCS+C signature: a
  FORS-C few-time signature carried up a hypertree of WOTS-C layers. Reserved
  for recovery and key rotation. Needs no signer state.

```mermaid
graph TD
    C["publicKeyCommitment (32 B)<br/>tag: shrincs-public-key/&lt;profile&gt;<br/>binds statefulPublicKey + pkSeed + hypertreeRoot"]
    C --> SR["Stateful root (UXMSS)<br/>unbalanced tree of WOTS-C one-time leaves<br/>leaf index = auth-path length"]
    C --> HR["Stateless root (SPHINCS+C)<br/>hypertree of WOTS-C layers<br/>over FORS-C few-time signatures"]
```

A 32-byte `publicKeyCommitment` binds both roots plus the profile identity.
Only the commitment needs on-chain storage. Callers resupply the full
164-byte public-key bundle on every verify, and the verifier recomputes and
checks the commitment. Verification is pure keccak-256 (SHA-256 for scheme
hashes in the sha2 profile) and grinds nothing. Signer state (nonces,
used-leaf tracking, budgets) belongs to the integrating account, not the
verifier.

### Components

Dependencies point only downward. Neither path knows about the other.
`shrincs` composes them at the API boundary.

- `shrincs` — the hybrid: commitment scheme, stateful + stateless dispatch,
  canonical action and rotation hashes.
- `shrincs::uxmss` — the stateful half: WOTS-C leaves under the unbalanced
  tree, crate-internal.
- `sphincs_plus_c` — the stateless half: FORS-C (`fors_c`) and the hypertree
  (`hypertree`). Oblivious to `shrincs`.
- `wots_c` — the shared WOTS-C target-sum chain walk, grind, and codec. Both
  paths bind it with their own domain tags. It calls into neither.
- `wotsplus` — standalone WOTS+ with checksum chains, the v1 wallet scheme.
  Not part of S
阅读完整原文

商业机会分析 规则生成(AI 未配置)

综合评分 48.1 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 15.0 分,差异化空间 70.0 分(评分依据见评分卡)。

面向细分需求的二次开发产品

产品构想基于 hashsigs-rs 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
hcmct21/hashsigs-rs 中文介绍暂未生成
0 -
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2025-03-19,近 30 天仍在推送
社区活跃Star 11,206 / Fork 46 / Issue 7(数据支持,可自行核实)
许可证AGPL-3.0 商用需注意传染性条款
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/QuipNetwork/hashsigs-rs.git
cd hashsigs-rs
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。