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

feat: Commit boost API - Generate Proxy Key #1043

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

usmansaleem
Copy link
Contributor

PR Description

Commit boost API - Generate Proxy Key Implementation of https://commit-boost.github.io/commit-boost-client/api

  • Routes and Handler for Generate Proxy Key CommitBoostGenerateProxyKeyHandler, CommitBoostGenerateProxyKeyRoute
  • Custom SSZ classes for calculating signing roots (BLSProxyDelegation, SECPProxyDelegation,ProxyDelegation)
  • Create BLS and/or SECP proxy keys (utility classes ProxyKeysGenerator and SigningRootGenerator)
  • Unit/Acceptance tests

Fixed Issue(s)

See #1017

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Testing

  • I thought about testing these changes in a realistic/non-local environment.

 -- Added routes and handler
 -- Added acceptance test
@usmansaleem usmansaleem self-assigned this Nov 27, 2024
@usmansaleem usmansaleem added the TeamCerberus Under active development by TeamCerberus @Consensys label Nov 27, 2024
Comment on lines 39 to 41
private static final int NOT_FOUND = 404;
private static final int BAD_REQUEST = 400;
private static final int INTERNAL_ERROR = 500;
Copy link
Contributor

Choose a reason for hiding this comment

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

These should be defined somewhere common, so they don't need to be redefined again

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We might be able to reuse Vertx constants.

.end(
new JsonObject()
.put("code", statusCode)
.put("message", "Identifier not found.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how strict commit boost is on the error message, but the API specifies the message of "Unknown pubkey" for a 404 on this page https://commit-boost.github.io/commit-boost-client/api/

.end(
new JsonObject()
.put("code", statusCode)
.put("message", "Internal Server Error")
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how strict commit boost is on the error message, but the API specifies the message of "Internal error" for a 500 on this page https://commit-boost.github.io/commit-boost-client/api/

@usmansaleem usmansaleem enabled auto-merge (squash) November 27, 2024 03:47
@usmansaleem usmansaleem merged commit c389a3f into Consensys:master Nov 27, 2024
6 checks passed
@usmansaleem usmansaleem deleted the cb_gen_proxy_api branch November 27, 2024 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TeamCerberus Under active development by TeamCerberus @Consensys
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants