Skip to main content

uncompressed_header_twin

Function uncompressed_header_twin 

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

signature, a 65-byte compact recoverable ECDSA signature made by a compressed key, with its header rewritten from 31 + id to 27 + id, the header of an uncompressed key: a twin a third party can derive from a valid signature without touching R or S. Key recovery accepts it like the original, because it hashes the recovered key in its compressed form whatever the header says.