Add FROST key promotion

Closes https://github.com/serai-dex/serai/issues/72.

Adds a trait, with a commented impl for a semi-unsafe niche feature, 
which will be used in https://github.com/serai-dex/serai/issues/73.
This commit is contained in:
Luke Parker
2022-08-13 08:49:38 -04:00
parent 885d816309
commit 454b73aec3
8 changed files with 283 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ pub enum DLEqError {
InvalidProof,
}
#[derive(Clone, PartialEq, Eq, Debug)]
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub struct DLEqProof<G: PrimeGroup> {
c: G::Scalar,
s: G::Scalar,