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

Валидация приватного и публичного ключей #23

Open
WhiteApfel opened this issue Oct 31, 2021 · 2 comments

Comments

@WhiteApfel
Copy link
Owner

Люди периодически их путают, надо бы добавить проверку на длину или вообще регулярочку бахнуть 💣

@WhiteApfel
Copy link
Owner Author

Приватный ключ представляет из себя за-base64-енный json формата

{
  "version": "P2P",
  "data": {
    "payin_merchant_site_uid": "58wapf-00",
    "user_id": "79993332405",
    "secret": "5dafd509959fafdca15aa00ca53558cfe358e5880a53dcfc608a5a6e0ffdce85"
  }
}

@WhiteApfel
Copy link
Owner Author

Добавил валидацию структуры словаря, без конкретных валидаций значений полей в ee30d7e

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