Skip to content

Commit

Permalink
Expose some utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Apr 18, 2024
1 parent 6517a8b commit 3229bde
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ietf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<S: IetfSuite + Sync> ark_serialize::Valid for Signature<S> {
}

impl<S: Suite> Signature<S> {
/// Proof to hash as defined by RFC9381 section 5.2
/// Proof to hash as defined by RFC-9381 section 5.2
pub fn hash(&self) -> HashOutput<S> {
self.gamma.hash()
}
Expand Down
5 changes: 5 additions & 0 deletions src/pedersen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ impl<S: PedersenSuite> Signature<S> {
self.pk_blind
}

/// Proof to hash as defined by RFC-9381 section 5.2
pub fn hash(&self) -> HashOutput<S> {
self.gamma.hash()
}

pub fn output(&self) -> Output<S> {
self.gamma
}
Expand Down
4 changes: 2 additions & 2 deletions src/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ pub struct Signature<S: RingSuite>
where
<S::Config as CurveConfig>::BaseField: ark_ff::PrimeField,
{
vrf_signature: PedersenSignature<S>,
ring_proof: RingProof<S>,
pub vrf_signature: PedersenSignature<S>,
pub ring_proof: RingProof<S>,
}

pub trait RingSigner<S: RingSuite>
Expand Down

0 comments on commit 3229bde

Please sign in to comment.