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

Uma data visibility #44

Merged
merged 4 commits into from
Jun 28, 2024
Merged

Uma data visibility #44

merged 4 commits into from
Jun 28, 2024

Conversation

shreyav
Copy link
Contributor

@shreyav shreyav commented Jun 26, 2024

No description provided.

@shreyav shreyav marked this pull request as ready for review June 26, 2024 22:19
@shreyav shreyav requested a review from jklein24 June 26, 2024 22:19
def hash_uma_identifier(self, identifier: str, signing_private_key: bytes) -> str:
now = datetime.now(timezone.utc)
input_data = (
identifier + f"{now.month}-{now.year}" + signing_private_key.decode("utf-8")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm sorry if I didn't notice this in other PRs, but should we be hex-encoding the private key instead of utf-8? I'm not entirely sure if this is always safe or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah thats true 😢 will update

@shreyav shreyav requested a review from jklein24 June 28, 2024 01:32
@shreyav shreyav merged commit ab6acf8 into main Jun 28, 2024
2 checks passed
@shreyav shreyav deleted the feat/uma-data branch June 28, 2024 20:23
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

Successfully merging this pull request may close these issues.

2 participants