shamhi / YesCoinBot

Bot that mines coins in YesCoin
173 stars 65 forks source link

Need help plz #48

Open hasan1818666891 opened 1 month ago

hasan1818666891 commented 1 month ago

Yescoin add "sign" header when claiming daily bonus

tm: 1727583698
sign: b69350ec77bd59b7272701478e5e57ca

Is there any way to generate this string, I tried to generate this string but it said {'code': 400035, 'message': 'sign error', 'data': None}

import hashlib, json
from time import time

tm = int(time())
json_data = {
  "id": "1840195608608555008",
  "createAt": 1727583698,
  "signInType": 1,
  "destination": "UQD3icccME0xnI5Dq8DV3ZT_NFIQQDxqYtLs9CdpiIXNfj0Y"
}
time_string = str(tm)
json_string = json.dumps(json_data)
hash_object = hashlib.md5()
hash_object.update(f"{time_string}_{json_string}".encode())
sign = hash_object.hexdigest()