Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Need help plz #48

Open
hasan1818666891 opened this issue Sep 29, 2024 · 0 comments
Open

Need help plz #48

hasan1818666891 opened this issue Sep 29, 2024 · 0 comments

Comments

@hasan1818666891
Copy link

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()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant