hashsigs-solidity README

The project's README from github.com/QuipNetwork/hashsigs-solidity. As one markdown file: README.md.

WOTS+ Solidity Implementation

A Solidity implementation of the Winternitz One-Time Signature Plus (WOTS+) scheme.

Development

This project uses Foundry for development and testing.

Prerequisites

Install Foundry:

curl -L https://foundry.paradigm.xyz | bash
foundryup

Testing

Run the Foundry tests:

forge test -vv

The -vv flag increases verbosity to show more test details. Use -vvv for even more detailed output including stack traces.

Building

forge build

License

Copyright (C) 2024 quip.network

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

hashsigs-solidity (QuipNetwork/hashsigs-solidity)

Searching Database…

这是什么?这是一个用 Solidity 实现的基于哈希的后量子签名,采用 Winternitz 一次性签名增强方案(WOTS+),旨在用于区块链智能合约之中。
这是独立应用,还是我可以接入自己合约的组件?它是一个 Solidity 智能合约库或构建模块,你可以将其集成到自己的区块链项目中,而不是独立的应用程序。
我该如何构建和测试它?先安装 Foundry,然后运行 forge build 编译合约,再运行 forge test 执行测试套件。
构建之前需要先安装什么?你需要先安装 Foundry 工具链(forge),才能构建和测试这些合约。
同一个密钥对能否用于多次签名?不能。WOTS+ 在设计上就是一次性签名方案,因此每个密钥对只有用于单次签名时才具有密码学上的安全性。
WOTS+ 到底是什么?WOTS+ 是一种基于哈希的一次性签名方案,被认为能够抵御量子计算机的攻击。而目前大多数区块链使用的是椭圆曲线签名(ECDSA),两者并不相同。
为什么智能合约需要后量子签名?目前链上使用的传统签名方案,未来可能被足够强大的量子计算机破解,因此像 WOTS+ 这样基于哈希的方案,可以为关键的链上密钥材料提供面向未来的防护。
测试失败时,我能看到更多细节吗?可以。运行 forge test 时加上 -vv 可查看更多测试细节,加上 -vvv 还能看到失败的完整堆栈跟踪。
Size
87.5 MB
Stars
11.2K
Updated
CommitAug 07
Age
1y
Commits · 90 Days