Skip to content

Commit

Permalink
Merge branch 'master' into feat/google_kms_support
Browse files Browse the repository at this point in the history
# Conflicts:
#	Cargo.toml
#	packages/fuels-accounts/Cargo.toml
#	packages/fuels-accounts/src/kms.rs
#	packages/fuels-accounts/src/kms/aws/wallet.rs
  • Loading branch information
Salka1988 committed Mar 4, 2025
2 parents c712ce6 + a57c5d6 commit 6ab1c01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/fuels-accounts/src/kms/aws/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ impl KmsKey {
let signature = K256Signature::from_der(signature_der)
.map_err(|_| Error::Other(format!("{AWS_KMS_ERROR_PREFIX}: Invalid DER signature")))?;

// Ensure the signature is in normalized form (low-S value)
let normalized_sig = signature.normalize_s().unwrap_or(signature);
let recovery_id = self.determine_recovery_id(&normalized_sig, message)?;

Expand Down Expand Up @@ -222,10 +223,13 @@ impl AwsWallet {
kms_key,
})
}

/// Returns the Fuel address associated with this wallet
pub fn address(&self) -> &Bech32Address {
&self.kms_key.fuel_address
}

/// Returns the provider associated with this wallet, if any
pub fn provider(&self) -> Option<&Provider> {
self.view_account.provider()
}
Expand Down

0 comments on commit 6ab1c01

Please sign in to comment.