-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Under the hood self-describing peerid like: 12D3KooWMRAdDAzYKfvPrN1R1Cf5fPC1iSLe37yUDV5FhEWsWABB
But format it like this:
- convert to hexadecimal
- copy first five hexadecimal after prefix to front
- prefix with 0x
Example:
002408011220ac5ad4ff4c9bb3c92ac2e18f0619ff5c7c2805c08947b01fff1d160e148dfa9aac5ad002408011220ac5ad4ff4c9bb3c92ac2e18f0619ff5c7c2805c08947b01fff1d160e148dfa9a0xac5ad002408011220ac5ad4ff4c9bb3c92ac2e18f0619ff5c7c2805c08947b01fff1d160e148dfa9a
as recommended by @rarepepi
Reasoning:
- 0x familiarity to eth devs
- keep self-describing key type allowing cryptographic upgrades
- beginning and end of key of id distinctive (example
0xac5ad...dfa9a) an key format still easy to find starting at fixed width
rarepepi
Metadata
Metadata
Assignees
Labels
No labels