Function breez_sdk_core::lightning::util::message_signing::sign

pub fn sign(msg: &[u8], sk: &SecretKey) -> Result<String, Error>
Expand description

Creates a digital signature of a message given a SecretKey, like the node’s secret. A receiver knowing the PublicKey (e.g. the node’s id) and the message can be sure that the signature was generated by the caller. Signatures are EC recoverable, meaning that given the message and the signature the PublicKey of the signer can be extracted.