Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant