create_signature
Create a signature with known y_parity
Arguments
r- The r component of the signatures- The s component of the signaturey_parity- Whether the y-coordinate of the R point is even (false) or odd (true)
Returns
Signature- The complete signature structure
Fully qualified path: alexandria_btc::legacy_signature::create_signature
pub fn create_signature(r: u256, s: u256, y_parity: bool) -> Signature