Skip to main content

high_s_twin

Function high_s_twin 

Source
pub fn high_s_twin(signature: &[u8]) -> Vec<u8> ⓘ
Expand description

signature, a 65-byte compact recoverable ECDSA signature, with S replaced by n - S and the recovery id’s parity flipped: the high-S twin a third party can derive from a valid low-S signature. Key recovery accepts it like the original.