prysm-pulse/tools/enr-calculator
Radosław Kapka 3e0b20529b
Miscellaneous code quality improvements (#7414)
* anti-patterns

* performance issues

* handle skipped defer

* gazelle fix

* misc bug risks

* make logging of proposer slashings more robust

* simplify calling span.End()

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-04 15:03:10 +00:00
..
BUILD.bazel Miscellaneous code quality improvements (#7414) 2020-10-04 15:03:10 +00:00
main.go Miscellaneous code quality improvements (#7414) 2020-10-04 15:03:10 +00:00
README.md Update Discv5 to the Latest Version (#3392) 2019-09-07 00:50:20 +05:30

ENR Calculator

To generate the ENR of a node

 bazel run //tools/enr-calculator:enr-calculator -- --private CAISIJXSWjkbgprwuo01QCRegULoNIOZ0yTl1fLz5N0SsJCS --ipAddress 127.0.0.1 --port 2000

This will deterministically generate an ENR from given inputs of private key, ip address and udp port.

Output of the above command:

INFO[0000] enr:-IS4QKk3gX9EqxA3x83AbCiyAnSuPDMvK52dC50Hm1XGDd5tEyQhM3VcJL-4b8kDg5APz_povv0Syqk0nancoNW-cq0BgmlkgnY0gmlwhH8AAAGJc2VjcDI1NmsxoQM1E5yUsp9vDQj1tv3ZWXCvaFBvrPNdz8KPI1NhxfQWzIN1ZHCCB9A