pub fn decode_signature(b: &[u8]) -> Result<KSig>
Expand description

Loads the recoverable signature from the DER-encoded bytes, as defined by ANS X9.62–2005 and RFC 3279 Section 2.2.3. ref. https://docs.aws.amazon.com/kms/latest/APIReference/API_Sign.html#KMS-Sign-response-Signature ref. https://github.com/gakonst/ethers-rs/blob/master/ethers-signers/src/aws/utils.rs “decode_signature”