Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aidanaden/schnorr-zig
schnorr signatures in zig (Ristretto255)
https://github.com/aidanaden/schnorr-zig
ed25519 ristretto255 schnorr schnorr-signatures zig
Last synced: 2 months ago
JSON representation
schnorr signatures in zig (Ristretto255)
- Host: GitHub
- URL: https://github.com/aidanaden/schnorr-zig
- Owner: aidanaden
- License: apache-2.0
- Created: 2024-08-31T19:56:54.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T01:13:13.000Z (3 months ago)
- Last Synced: 2024-10-02T07:03:33.098Z (3 months ago)
- Topics: ed25519, ristretto255, schnorr, schnorr-signatures, zig
- Language: Zig
- Homepage:
- Size: 53.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# schnorr signatures + musig2 (N/N multisigs)
Simple zig implementation of [Schnorr Signatures](https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing) and [MuSig2](https://link.springer.com/chapter/10.1007/978-3-030-84242-0_8).
Implementation partially inspired by [https://github.com/VictoriaGrasshopper/schnorr_signature](https://github.com/VictoriaGrasshopper/schnorr_signature)
Includes a CLI app for independent/one-time using of schnorr and musig2 signing.
## Security considerations
TODO
## Installing
1. Run the following command:
```
zig fetch --save git+https://github.com/aidanaden/schnorr-zig
```2. Add the following to `build.zig`:
```zig
const schnorr = b.dependency("schnorr", .{});
exe.root_module.addImport("schnorr", schnorr.module("schnorr"));
exe.root_module.addImport("musig2", schnorr.module("musig2"));
```## Build
```sh
zig build
```## Usage
TODO
### CLI
TODO
### Code example
TODO
## API
This package exposes two functions: `generate` and `reconstruct`.
#### Generate
TODO
## License
Apache-2.0. See the [license file](LICENSE).
## References
- Reasons for Ristretto255
- [https://loup-vaillant.fr/tutorials/cofactor](https://loup-vaillant.fr/tutorials/cofactor)
- Schnorr
- [https://github.com/VictoriaGrasshopper/schnorr_signature](https://github.com/VictoriaGrasshopper/schnorr_signature)
- MuSig2
- [https://hackmd.io/@_XlWbpTTRNaI4BeB7d8qig/BJbt-zlF_#Ristretto255](https://hackmd.io/@_XlWbpTTRNaI4BeB7d8qig/BJbt-zlF_#Ristretto255)
- [https://eprint.iacr.org/2020/1261.pdf](https://eprint.iacr.org/2020/1261.pdf)- Curve25519
- [https://martin.kleppmann.com/papers/curve25519.pdf](https://martin.kleppmann.com/papers/curve25519.pdf)