Skip to content

Conversation

@egillh210
Copy link
Contributor

The WebAuth standard does not allow for a credentialId -> pub-key lookup in the browser. Knowing the public key of a credential is essential for any integration with this contract (interacting via rhinestone sdk or any other custom integration)

Most people use event indexers as their db, so having this info on the event payload makes it a lot easier to track this state in any off-chain data layer. Ofc you can work around it by doing read-queries as a side effect of the existing event signature, but it's definitely something you always want to avoid if possible (1. it slows down indexing 2. reliance on querying an archive node when back-filling can introduce brittleness in the indexer which is annoying to deal with)

If you ever re-deploy this contract, please include this change.

PS, the credId can easily be derived from the pubY and pubX (but not the other way around). If you'd like, you could probably remove the credId from the event all-together.

@kopy-kat kopy-kat merged commit 04db653 into rhinestonewtf:main Sep 15, 2025
9 checks passed
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