func writeKeys(dataDir string, id IdentityID, key []byte, cert []byte) error {
	kp, cp := keysPath(dataDir, id)
	log.Debugf("write key to %v, cert from %v", kp, cp)

	if err := ioutil.WriteFile(kp, key, 0600); err != nil {
		return err
	}
	if err := ioutil.WriteFile(cp, cert, 0600); err != nil {
		return err
	}
	return nil
}
// writeKeys saves the key/cert pair for a given domain onto disk. This usually means the
// domain trusts us (signed our public key)
writeKeys saves the key/cert pair for a given domain onto disk. This usually means the
domain trusts us (signed our public key)
// writeKeys saves the key / cert pair for a given domain onto disk . This usually means the // domain trusts us ( signed our public key )
func writeKeys(dataDir string, id IdentityID, key []byte, cert []byte) error {
	kp, cp := keysPath(dataDir, id)
	log.Debugf("write key to %v, cert from %v", kp, cp)
	if err := ioutil.WriteFile(kp, key, 0600); err != nil {
		return err
	}
	if err := ioutil.WriteFile(cp, cert, 0600); err != nil {
		return err
	}
	return nil
}
func writeKeys ( dataDir string , id IdentityID , key [ ] byte , cert [ ] byte ) error { kp , cp := keysPath ( dataDir , id ) log . Debugf ( " " , kp , cp ) if err := ioutil . WriteFile ( kp , key , 0600 ) ; err != nil { return err } if err := ioutil . WriteFile ( cp , cert , 0600 ) ; err != nil { return err } return nil }
writeKeys saves the key/cert pair for a given domain onto disk.
writeKeys saves the key / cert pair for a given domain onto disk .