Skip to content

Commit

Permalink
_arkworks checked, _rustcrypto updated
Browse files Browse the repository at this point in the history
  • Loading branch information
skaunov committed Mar 7, 2024
1 parent b9d77f6 commit 784ee8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rust-k256/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ pub struct PlumeSignature {
#[derive(Debug)]
pub struct PlumeSignatureV1Fields {
/// Part of the signature data, a curve point.
pub r_point: ProjectivePoint,
pub r_point: AffinePoint,
/// Part of the signature data, a curve point.
pub hashed_to_curve_r: ProjectivePoint,
pub hashed_to_curve_r: AffinePoint,
}
impl PlumeSignature {
/// Verifies a PLUME signature.
Expand Down
2 changes: 1 addition & 1 deletion rust-k256/src/randomizedsigner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl<'signing> RandomizedSigner<PlumeSignature> for PlumeSigner<'signing> {
v1specific: if self.v1 {
Some(PlumeSignatureV1Fields {
r_point: r_point.into(),
hashed_to_curve_r: hashed_to_curve_r.to_point(),
hashed_to_curve_r: hashed_to_curve_r.to_point().to_affine(),
})
} else {
None
Expand Down
4 changes: 2 additions & 2 deletions rust-k256/tests/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fn plume_v1_test() {
c: NonZeroScalar::from_repr(C_V1.into()).unwrap(),
s: NonZeroScalar::new(test_data.3).unwrap(),
v1specific: Some(PlumeSignatureV1Fields {
r_point,
hashed_to_curve_r,
r_point: r_point.into(),
hashed_to_curve_r: hashed_to_curve_r.into(),
}),
};
let verified = sig.verify();
Expand Down

0 comments on commit 784ee8e

Please sign in to comment.