Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

create_challenge_response

Function create_challenge_response 

Source
pub fn create_challenge_response(
    challenge: impl AsRef<[u8]>,
    signing_key: &PrivateKey,
) -> Vec<u8> 
Expand description

Create a challenge response by signing a challenge

Signs the challenge with the given key and returns the raw signature bytes. This is used in sync handshake protocols where the signature needs to be transmitted as binary data rather than base64 strings.

§Arguments

  • challenge - The challenge bytes to sign
  • signing_key - The private key to sign with

§Returns

Raw signature bytes (not base64 encoded)