The core functionality of the webhook server. Don't use this directly!

Function verifyHMAC Verify the signature of a request.
Class InvalidData Raised when WebhookDispatchingResource can't interpret some aspect of a request.
Class WebhookDispatchingResource A Resource subclass that authenticates Github web hook requests and dispatches to IWebhook implementing plugins.
Function _hexdigestBytes Return the hex digest of an hmac.HMAC object as bytes.
def _hexdigestBytes(hmacObject):

Return the hex digest of an hmac.HMAC object as bytes.

ParametershmacObjectthe HMAC object to digest. (type: hmac.HMAC)
def verifyHMAC(headers, content, key):

Verify the signature of a request.

Parametersheadersthe headers that contain the request under the expected header name. (type: twisted.web.http_headers.Headers)
contentthe signed content (type: bytes)
keythe key that signed this request. (type: bytes)
ReturnsTrue if the signature could be verified and False if not. (type: bool)
API Documentation for txghbot, generated by pydoctor at 2016-10-15 18:50:32.