We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca0c1e commit bd0d829Copy full SHA for bd0d829
src/signer.rs
@@ -201,6 +201,9 @@ impl Signer for KMSSigner {
201
202
let mut signature = Signature::from_der(kms_signature.as_ref())
203
.map_err(|e| anyhow::anyhow!("Failed to decode signature from KMS: {}", e))?;
204
+ // NOTE: AWS KMS does not guarantee that the ECDSA signature is normalized.
205
+ // Therefore, we must normalize it ourselves to prevent malleability,
206
+ // so that it can be successfully verified later using the secp256k1 standard libraries.
207
signature.normalize_s();
208
let signature_bytes = signature.serialize_compact();
209
0 commit comments