// The identify package handles how peers identify with eachother upon// connection to the networkpackageidentifyimport(peer"github.com/jbenet/go-ipfs/peer"swarm"github.com/jbenet/go-ipfs/swarm")// Perform initial communication with this peer to share node ID's and// initiate communicationfuncHandshake(self*peer.Peer,conn*swarm.Conn)error{// temporary:// put your own id in a 16byte buffer and send that over to// the peer as your ID, then wait for them to send their ID.// Once that trade is finished, the handshake is complete and// both sides should 'trust' each otherid:=make([]byte,16)copy(id,self.ID)conn.Outgoing.MsgChan<-idresp:=<-conn.Incoming.MsgChanconn.Peer.ID=peer.ID(resp)returnnil}