-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): Fix peer_id generation (#1656)
<!-- Thanks for sending a pull request! --> ## What this PR does / why we need it? This PR fixes a bug in the key generation , where peer_id is hex encoded. ### What is the impact of this PR? #### Before ``` /axon$ ./target/release/axon generate-keypair -n 1 -p . { "keypairs": [ { "index": 0, "net_private_key": "0x3e7ee435ec780adc22913cf43dcf81849596e66436d6ea92473b5aa38ce59355", "public_key": "0x02817154cbb0946980b352378b7366fc86dff6ca5f71a3c3767accd4d35481aa16", "address": "0x1F781E1FA61dce22A256873Af1E4066D6f2Db042", "peer_id": "0x516d5475796e324b445a66685271665763666f79656a424e53737554414b75567432616a6e4d6331524858664737", "bls_private_key": "0x72e19bff8b6a260ff33c57fede34d3ff5cad1891f48674db952413f45324da07", "bls_public_key": "0x9688b98d4c203d42e0d73b7bd233c5e73b5a92804fc7ac5446ee80d9758d0da9f6250fea030377a697e29059c0e98f29" } ] } ``` #### After ``` ./target/release/axon generate-keypair -n 1 -p . | grep peer_id "peer_id": "QmS93dMohH8pvvV9ULSGSX7YmPuEbx7gr29Qfyfp1Ch5KA", ``` No Breaking Change
- Loading branch information
Showing
5 changed files
with
2,015 additions
and
2,358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.