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 signsigning_key- The private key to sign with
§Returns
Raw signature bytes (not base64 encoded)