Skip to content

Conversation

@emmick4
Copy link
Member

@emmick4 emmick4 commented Nov 14, 2025

addresses comments from #97

  • make sure the legacy pubkey method still works
  • cache vk

@emmick4 emmick4 requested a review from antazoey November 14, 2025 17:40
if derived_vk_bytes != self._provided_vk_bytes:
raise ValueError("Provided Ed25519 public key does not match derived key from seed")
return Ed25519PublicKey.from_public_bytes(self._provided_vk_bytes)
return self.sk.public_key()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you need to call it, it should work like a property e.g. self.public_key

Copy link
Member Author

Choose a reason for hiding this comment

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

self.sk is a Ed25519PrivateKey, confusing that we also have a self.public_key just below

Copy link
Collaborator

Choose a reason for hiding this comment

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

I made the property because it seemed better, it was the same as pubkey() before but just the property version

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