Gate.IOpython code Github addresshttps://github.com/gateio/rest/blob/master/python/HttpUtil.pyCan you tell me who is good at analyzing code?
#!/usr/bin/python
Import from http.client Imported urllib import json from hashlib import sha512 import hmac / does anyone know what HMAC is and in which Python version?
/ Question one: Do the above need to be done on a native or VPS pre-installed python3X?
def getSign(params,secretKey): / sign = ‘’ for key in (params.keys()): sign += key + ‘=’ + str(params[key]) +’&’ sign = sign[:-1] my_sign = hmac.new( bytes(secretKey,encoding=‘utf8’),bytes(sign,encoding=‘utf8’), sha512).hexdigest() return my_sign
/ 有谁可以解析一下GATE.IOIs this the code for the interface?
Inventors quantify - small dreamsYou don't need to sign sing, the BotVS sub-layer has been wrapped, and the signatures are automatic. I'll give you an example. It's OK to write a policy directly with BotVS.