Skip to content

aidanaden/schnorr-zig

Repository files navigation

schnorr signatures + musig2 (N/N multisigs)

Simple zig implementation of Schnorr Signatures and MuSig2.

Implementation partially inspired by 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
  1. Add the following to build.zig:
const schnorr = b.dependency("schnorr", .{});
exe.root_module.addImport("schnorr", schnorr.module("schnorr"));
exe.root_module.addImport("musig2", schnorr.module("musig2"));

Build

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.

References