Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

The peer id generated by the terminal is different from the peer id generated by the subkey #7045

@bingryan

Description

@bingryan

image

when I run dev mode , get node identity 12D3KooWKEpHANYwey4BdaPRRtSRJseGNxZUo3mgKZr689MJdGv4 :

2020-09-07 18:30:29.138 main INFO sub-libp2p  🏷  Local node identity is: 12D3KooWKEpHANYwey4BdaPRRtSRJseGNxZUo3mgKZr689MJdGv4 (legacy representation: QmeXLzSXyyd8iXBSKdmtxCbCtnJQXoxALquWZzevXm2CNA)

but when I run generate-node-key --file secret_ed25519 get 12D3KooWH4DBA8CtwgFWMLcksDxD6Ybq474bUVLjytHZ34oEH3Fc

➜  network subkey generate-node-key --file secret_ed25519
12D3KooWH4DBA8CtwgFWMLcksDxD6Ybq474bUVLjytHZ34oEH3Fc
➜  network pwd
/home/rust/.local/share/node-template/chains/dev/network

Why are the two different

Metadata

Metadata

Assignees

No one assigned

    Labels

    J2-unconfirmedIssue might be valid, but it’s not yet known.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions