fix: aws signer does not throw error on unnormalized sig (#1099)
* fix: reverts aws signer fix around sig normalization * chore: update changelog
This commit is contained in:
parent
f402f134a3
commit
b3679fe113
|
@ -4,6 +4,7 @@
|
|||
|
||||
### Unreleased
|
||||
|
||||
- Fix aws signer bug which maps un-normalized signature to error if no normalization occurs (in `aws::utils::decode_signature`)
|
||||
- `Transaction::from` will default to `Address::zero()`. Add `recover_from` and
|
||||
`recover_from_mut` methods for recovering the sender from signature, and also
|
||||
setting the same on tx [1075](https://github.com/gakonst/ethers-rs/pull/1075).
|
||||
|
|
|
@ -93,8 +93,6 @@ pub(super) fn decode_signature(resp: SignResponse) -> Result<KSig, AwsSignerErro
|
|||
.signature
|
||||
.ok_or_else(|| AwsSignerError::from("Signature not found in response".to_owned()))?;
|
||||
|
||||
let sig = KSig::from_der(&raw)?
|
||||
.normalize_s()
|
||||
.ok_or_else(|| AwsSignerError::from("Could not normalize `s`".to_owned()))?;
|
||||
Ok(sig)
|
||||
let sig = KSig::from_der(&raw)?;
|
||||
Ok(sig.normalize_s().unwrap_or(sig))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue