I’m trying to learn IPFS, my current goal is to build as simple system as I can which allows for one peer to pass a photo to another peer. I assume that the both peers are connected to the network, I also ignore the question of how to find the other peer (I’ll post a question about that separately). I also not looking for long-term storage in the network, after the receiving node has the image it stores it locally.
I saw some questions and discussions about encrypting data before adding it to IPFS, I also saw the wip spec for
ipfs crypt but I don’t see any guidelines nor example code for encrypting data, please refer me if there is something like that.
- Is it good idea/practice to use the node identity key for encryption? For example, I can use the node PubKey to encrypt the data, that way I can be sure that only that specific node will be able to decrypt it.
- Is there a good way to obtain the PubKey of a specific node?