(payload: str, key: str)
| 3 | |
| 4 | |
| 5 | def sign_payload(payload: str, key: str): # type: ignore[no-untyped-def] |
| 6 | # signPayload of frontend/web/components/TestWebHook on the frontend replicates this |
| 7 | # exact function, change the function there if this changes. |
| 8 | return hmac.new( |
| 9 | key=key.encode(), msg=payload.encode(), digestmod=hashlib.sha256 |
| 10 | ).hexdigest() |
no outgoing calls
searching dependent graphs…