Skip to content

Commit

Permalink
Update protocols/v2/noise-sv2/src/responder.rs
Browse files Browse the repository at this point in the history
Co-authored-by: RJ Rybarczyk <[email protected]>
  • Loading branch information
Shourya742 and rrybarczyk authored Sep 2, 2024
1 parent 23cdbba commit d34b5f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions protocols/v2/noise-sv2/src/responder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,12 @@ impl Responder {
Ok((to_send, codec))
}

/// Generates the signature for the responder's handshake message, including version,
/// validity period, and the responder's public key signed by the authority's keypair.
/// Generates a signature noise message for the responder's certificate.
///
/// This method creates a signature noise message that includes the protocol version,
/// 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.
fn get_signature(&self, version: u16, valid_from: u32, not_valid_after: u32) -> [u8; 74] {
let mut ret = [0; 74];
let version = version.to_le_bytes();
Expand Down

0 comments on commit d34b5f0

Please sign in to comment.