-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from mzacho/schnorr
Use `crypto-bigint` instead of `num-bigint`
- Loading branch information
Showing
7 changed files
with
153 additions
and
150 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use crate::shares::Nat; | ||
|
||
/// A specification of the subgroup from Zp of prime order q, | ||
/// where p is a safe prime with associated Sofie Germain prime q | ||
pub struct GroupSpec { | ||
/// Primes p and q where p = 2q+1 | ||
p: Nat, | ||
q: Nat, | ||
/// Generator of the group, ord(g) = q | ||
g: Nat, | ||
} | ||
|
||
// impl GroupSpec { | ||
// /// Constructs a new group spec with security parameter k | ||
// /// i.e. k is the size of q | ||
// fn new(_: Nat) -> GroupSpec { | ||
|
||
// // GroupSpec { p: (), q: (), g: () } | ||
// todo!() | ||
// } | ||
// } |
Oops, something went wrong.