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

BLS key script improvement: allow hex string input #611

Merged
merged 2 commits into from
May 8, 2024
Merged

Conversation

metachris
Copy link
Collaborator

πŸ“ Summary

scripts/create-bls-keypair: allow hex string as input

just used as a helper, not part of the relay logic


βœ… I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

"github.com/flashbots/go-boost-utils/bls"
)

func main() {
sk := GenSecretKey()
// sk := SecretKeyFromHexString("0x")
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's this used for? shouldn't this script use command line args to parse hex string and generate a new one if not provided?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's used for checking a hex secret key, and converting that into secret key + getting public key for it. it's just for testing / dev, using CLI args seems overkill for now

@metachris metachris merged commit c1eb4ca into main May 8, 2024
4 checks passed
@metachris metachris deleted the bls-script branch May 8, 2024 11:59
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