pub fn is_valid_signature_encoding(sig: &Vec<u8>) -> bool
Expand description

| A canonical signature exists of: <30> | <02> <02> <len | S> | | Where R and S are not negative (their | first byte has its highest bit not set), | and not excessively padded (do not start | with a 0 byte, unless an otherwise negative | number follows, in which case a single | 0 byte is necessary and even required). | | See https://bitcointalk.org/index.php?topic=8392.msg127623#msg127623 | | This function is consensus-critical | since BIP66. |