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

Fix 'UnregisteredInitializer' error on signer #749

Merged
merged 2 commits into from
Feb 13, 2023

Conversation

jpraynaud
Copy link
Member

@jpraynaud jpraynaud commented Feb 10, 2023

Content

This PR includes a fix to the error received by some signers when attempting to create a single signature: ProtocolInitializerNotRegistered(CoreRegister(UnregisteredInitializer))

After investigation, it appears that this error occurs when a signer is signing a message and is not registered for the next epoch: in that case the signer should be able to sign and should only skip signing at the next epoch. The fix replaces the usage of a protocol initializer with a clerk instead to compute the aggregate verification key that is embedded in the signed message.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Issue(s)

Closes #730

Instead of using a protocol initializer: this avoids preventing signer from signing
when it is not registered for the next epoch and returning a 'UnregisteredInitializer' error.
@jpraynaud jpraynaud self-assigned this Feb 10, 2023
@github-actions
Copy link

github-actions bot commented Feb 10, 2023

Test Results

    3 files  ±0    28 suites  ±0   4m 38s ⏱️ -30s
435 tests ±0  435 ✔️ ±0  0 💤 ±0  0 ±0 
503 runs  ±0  503 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 88ddc1c. ± Comparison against base commit 898bb81.

♻️ This comment has been updated with latest results.

@jpraynaud jpraynaud temporarily deployed to testing-preview February 10, 2023 17:09 — with GitHub Actions Inactive
@jpraynaud jpraynaud temporarily deployed to testing-preview February 13, 2023 11:53 — with GitHub Actions Inactive
@jpraynaud jpraynaud merged commit 8cc5eec into main Feb 13, 2023
@jpraynaud jpraynaud deleted the jpraynaud/730-fix-unregistered-initializer-error branch February 13, 2023 11:57
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.

Signer can't sign on testing-preview network
2 participants