Identity file is stored at {DATADIR}/p2p/p2p.key, for example -d /tmp/libp2pnew/ location of the identity file is at /tmp/libp2pnew/777/p2p/p2p.key. Example content of the file: {"Key":"CAESQNAuhFOHKi2bEXArgW3Lx9ZcDOsBe+cmlmoMR8cbadEzdva7QJzXS+dLqOoxhJOz1Zkz2q/hPSnBwTFJD8XfzKk=","ID":"12D3KooWHpkVErtj1XrPq2hybPHrQpmE5Yuck8XxeQ7wVpcagCnc"}
Key is a ed25519 private key, marshalled together with a key type.
Identity is a public key marshalled to be usable with libp2p library.
Identity file is stored at
{DATADIR}/p2p/p2p.key
, for example-d /tmp/libp2pnew/
location of the identity file is at/tmp/libp2pnew/777/p2p/p2p.key
. Example content of the file:{"Key":"CAESQNAuhFOHKi2bEXArgW3Lx9ZcDOsBe+cmlmoMR8cbadEzdva7QJzXS+dLqOoxhJOz1Zkz2q/hPSnBwTFJD8XfzKk=","ID":"12D3KooWHpkVErtj1XrPq2hybPHrQpmE5Yuck8XxeQ7wVpcagCnc"}
Key is a ed25519 private key, marshalled together with a key type. Identity is a public key marshalled to be usable with libp2p library.
This is an example of the new p2p config:
The highlighted part of the /ip4/34.122.69.143/tcp/5005/p2p/12D3KooWNZQZuCf2Db4duHnS2KJGkhUK1T4gzoDMVbMyUsxoqbhb is the Identity field.
changes in spacecraft to support this: https://github.com/spacemeshos/go-spacecraft/pull/12/commits/e0308cb1b8179feace609c2e660da2919ee47850