Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion accounts/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,13 @@
return nil, err
}

accountKMSSigner, err := kmsClient.SignerForKey(
// Honor the hash algorithm declared in flow.json. GCP KMS only supports SHA2_256
// natively for its EC_SIGN_P256_SHA256 key type, so if the on-chain key is
// registered with SHA3_256 we need to pre-hash client-side and submit the digest.
accountKMSSigner, err := kmsClient.SignerForKeyWithHashAlgo(

Check failure on line 169 in accounts/keys.go

View workflow job for this annotation

GitHub Actions / test

kmsClient.SignerForKeyWithHashAlgo undefined (type *cloudkms.Client has no field or method SignerForKeyWithHashAlgo)

Check failure on line 169 in accounts/keys.go

View workflow job for this annotation

GitHub Actions / lint

kmsClient.SignerForKeyWithHashAlgo undefined (type *cloudkms.Client has no field or method SignerForKeyWithHashAlgo) (typecheck)
ctx,
a.kmsKey,
a.HashAlgo(),
)
if err != nil {
return nil, err
Expand Down
Loading