What is the correct formatting for swarm.key file in private IPFS network


I am working on creating a private network by following the below link:

I have generated the swarm file which looks like this:

After running the IPFS daemon, I am getting error, Kindly suggest the correct file formatting for swarm.key for Ubuntu.


That swarm key is not hex and is very corrupted. It looks like the article is incorrect. ~tr does not appear to work on binary~ edit: that tr command has an m-dash instead of a hyphen.

Try using option 2 for generating a swarm key.

I used this guide by @ahester57 to generate a swarmkey. Try and see if it works for you.