Skip to main content

create_signing_message

Function create_signing_message 

Source
pub fn create_signing_message(
    random_nonce: &str,
    created_time: i64,
    expiration_time: i64,
    website_id: &str,
    challenge_param: &[u8; 32],
    public_key: &[u8; 32],
) -> String
Expand description

Creates a message to be signed from challenge data components

This function creates a canonical representation of the challenge data for signing. It takes individual challenge components rather than a complete challenge object, allowing it to be used during challenge creation.

§Arguments

  • random_nonce: The random nonce string
  • created_time: The challenge creation timestamp
  • expiration_time: The challenge expiration timestamp
  • website_id: The website identifier
  • challenge_param: The challenge parameter bytes
  • public_key: The public key bytes

§Returns

  • String: Canonical string representation for signing