You don't even get to know what's inside HomeKit until you're an MFI-certified developer with Apple. And yes, there's a chip involved (again, which you can't even touch until you're an MFI licensee). The chip handles all the security protocols involved.