MCPcopy Create free account
hub / github.com/binance/binance-connector-python / hmac_hashing

Function hmac_hashing

common/src/binance_common/utils.py:68–80  ·  view source on GitHub ↗

Generates an HMAC-SHA256 hash of the provided payload using the given API secret. Args: api_secret (str): The API secret to use for the HMAC-SHA256 hashing. payload (str): The payload to hash. Returns: str: The hexadecimal HMAC-SHA256 hash of the payload.

(api_secret: str, payload: str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

test_empty_payloadMethod · 0.90
test_empty_api_secretMethod · 0.90
test_both_emptyMethod · 0.90
test_different_inputsMethod · 0.90
test_hmac_signatureMethod · 0.90
get_signatureFunction · 0.85

Calls

no outgoing calls

Tested by 6

test_empty_payloadMethod · 0.72
test_empty_api_secretMethod · 0.72
test_both_emptyMethod · 0.72
test_different_inputsMethod · 0.72
test_hmac_signatureMethod · 0.72