Skip to content

Commit 05557b6

Browse files
committed
fix: fix event webhook for updated starbank-ecdsa dependency
1 parent e27a2b1 commit 05557b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sendgrid/helpers/eventwebhook/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def convert_public_key_to_ecdsa(self, public_key):
2727
:return: public key using the ECDSA algorithm
2828
:rtype PublicKey
2929
"""
30-
return PublicKey.fromPem(public_key)
30+
return PublicKey.fromPem('\n-----BEGIN PUBLIC KEY-----\n'+public_key+'\n-----END PUBLIC KEY-----\n')
3131

3232
def verify_signature(self, payload, signature, timestamp, public_key=None):
3333
"""

0 commit comments

Comments
 (0)