Skip to content

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
@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.

3 participants