starknet_crypto

Function rfc6979_generate_k

Source
pub fn rfc6979_generate_k(
    message_hash: &Felt,
    private_key: &Felt,
    seed: Option<&Felt>,
) -> Felt
Expand description

Deterministically generate ephemeral scalar k based on RFC 6979.

ยงParameters

  • message_hash: Message hash.
  • private_key: Private key.
  • seed: Extra seed for additional entropy.