Skip to content

Commit

Permalink
Shourya742 review
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges Palauqui committed Dec 7, 2024
1 parent 8c88de8 commit feeb225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocols/v2/noise-sv2/src/responder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ impl Responder {
&mut rand::thread_rng(),
)
}
#[inline]
pub fn step_1_with_now_rng<R: rand::Rng + rand::CryptoRng>(
&mut self,
elligatorswift_theirs_ephemeral_serialized: [u8; ELLSWIFT_ENCODING_SIZE],
Expand Down Expand Up @@ -367,6 +368,7 @@ impl Responder {
// certificate validity period, and a cryptographic signature. The signature is created using
// the responder's static public key and authority keypair, ensuring that the responder's
// identity and certificate validity are cryptographically verifiable.
#[inline]
fn get_signature<R: rand::Rng + rand::CryptoRng>(

Check warning on line 372 in protocols/v2/noise-sv2/src/responder.rs

View check run for this annotation

Codecov / codecov/patch

protocols/v2/noise-sv2/src/responder.rs#L372

Added line #L372 was not covered by tests
&self,
version: u16,
Expand Down
1 change: 1 addition & 0 deletions protocols/v2/noise-sv2/src/signature_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl SignatureNoiseMessage {
.as_secs() as u32;
self.verify_with_now(pk, authority_pk, now)
}
#[inline]
pub fn verify_with_now(
self,
pk: &XOnlyPublicKey,
Expand Down

0 comments on commit feeb225

Please sign in to comment.