Skip to content

Commit

Permalink
Implement Nova proof.
Browse files Browse the repository at this point in the history
  • Loading branch information
porcuquine committed Sep 7, 2021
1 parent d81410f commit 888727a
Show file tree
Hide file tree
Showing 5 changed files with 913 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/minroot.rs
Expand Up @@ -595,8 +595,8 @@ where

#[derive(Debug)]
pub struct VanillaVDFProof<V: MinRootVDF<F> + Debug, F: FieldExt> {
result: State<F>,
t: u64,
pub result: State<F>,
pub t: u64,
_v: PhantomData<V>,
}

Expand Down
4 changes: 4 additions & 0 deletions src/nova.rs → src/nova/#traits.rs#
Expand Up @@ -16,6 +16,10 @@ pub struct PallasScalar(pallas::Scalar);
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub struct PallasCompressedPoint(<pallas::Point as GroupEncoding>::Repr);

pub trait NovaGroup<F: FieldExt> {
type Group: Group;
}

impl Group for PallasPoint {
type Scalar = PallasScalar;
type CompressedGroupElement = PallasCompressedPoint;
Expand Down
3 changes: 3 additions & 0 deletions src/nova/mod.rs
@@ -0,0 +1,3 @@
#![allow(non_snake_case)]
pub mod proof;
pub mod traits;

0 comments on commit 888727a

Please sign in to comment.