reth::primitives::transaction::util::secp256k1

Function sign_message

pub fn sign_message(
    secret: FixedBytes<32>,
    message: FixedBytes<32>,
) -> Result<PrimitiveSignature, Error>
Available on crate feature secp256k1 only.
Expand description

Signs message with the given secret key. Returns the corresponding signature.