Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

create_signature

Create a signature with known y_parity

Arguments

  • r - The r component of the signature
  • s - The s component of the signature
  • y_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