Function starknet_crypto::sign
source · pub fn sign(
private_key: &FieldElement,
message: &FieldElement,
k: &FieldElement
) -> Result<ExtendedSignature, SignError>
Expand description
Computes ECDSA signature given a Stark private key and message hash.
§Arguments
private_key
: The private keymessage
: The message hashk
: A randomk
value. You MUST NOT use the samek
on different signatures