Skip to content

Commit db64078

Browse files
committed
expose signature in vrf crate
1 parent f01fe62 commit db64078

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vrf/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ edition = "2024"
55

66
[dependencies]
77
digest = "=0.11.0-pre.10"
8+
signature = "2.3.0-pre.7"

vrf/src/lib.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use digest::{Output, OutputSizeUser};
22

3+
pub use signature::Verifier;
4+
35
pub trait Proof<H>
46
where
57
H: OutputSizeUser,
@@ -15,12 +17,3 @@ where
1517

1618
fn prove(&self, alpha: &[u8]) -> Self::Proof;
1719
}
18-
19-
pub trait Verifier<H>
20-
where
21-
H: OutputSizeUser,
22-
{
23-
type Proof: Proof<H>;
24-
25-
fn verify(&self, alpha: &[u8], proof: Self::Proof) -> bool;
26-
}

0 commit comments

Comments
 (0)