code: func NewDeviceID(rawCert []byte) DeviceID {
  	var n DeviceID
  	hf := sha256.New()
  	hf.Write(rawCert)
  	hf.Sum(n[:0])
  	return n
  }
docs: // NewDeviceID generates a new device ID from the raw bytes of a certificate