reth_primitives_traits::crypto::secp256k1

Function sign_message

Source
pub fn sign_message(secret: B256, message: B256) -> Result<Signature, Error>
Available on crate feature secp256k1 only.
Expand description

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