Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error/keypair modules and documentation for VRF crate (based on #1794) #1796

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: rustfmt
  • Loading branch information
carloskiki committed Mar 13, 2025
commit b4658fecbea2d1b9c865be5f328f6b2722e56fd7
6 changes: 3 additions & 3 deletions vrf/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use digest::{Output, OutputSizeUser};

pub trait Proof<H>
where
where
H: OutputSizeUser,
{
fn to_hash(&self) -> Output<H>;
Expand All @@ -12,7 +12,7 @@ where
H: OutputSizeUser,
{
type Proof: Proof<H>;

fn prove(&self, alpha: &[u8]) -> Self::Proof;
}

Expand All @@ -21,6 +21,6 @@ where
H: OutputSizeUser,
{
type Proof: Proof<H>;

fn verify(&self, alpha: &[u8], proof: Self::Proof) -> bool;
}