Smart Camera System Clause Samples
Smart Camera System. We consider a scenario where a homeowner rents a room to a tenant. The room has a camera that encrypts data while streaming video. Ideally, only the owner should be able to decrypt this data when the room is unrented, but a tenant should be able to take over this exclusive decryption capability for the duration of the rental. In [4], the authors provide a blockchain-based solution to this problem using smart contracts as described next. The manufacturer of the camera records the address of the homeowner (every user account and smart contract in a blockchain has an address) within a smart contract (Pos- sessionContract) and deploys it to a public blockchain. This contract is responsible for tenancy transfers and tenancy polling. The manufacturer embeds the address of the smart contract in the camera, along with the private key of the camera. The public key of the camera is recorded in the smart contract during deployment. PossessionContract consists primarily of two functions: transferTenancy and pollTenancy. transferTenancy is used to update tenant’s information such as the public key of the tenant, tenancy period, cost, etc. This function performs a 2▇▇▇▇▇://▇▇▇.▇▇▇▇▇▇.▇▇▇ check at the beginning to make sure the entity calling the function is indeed the owner. A malicious actor (including a malicious owner) may call the function at any time during the valid tenancy period, and this function will return without affecting any value, thus respecting the original agreement between the owner and the tenant. pollTenancy is used by the camera to find the public key of the current tenant. A camera polls the tenant’s public key on a daily basis according to the proposed method in [4]. As both the camera and the tenant know each other’s public key, they can establish a symmetric key using the ▇▇▇▇▇▇- ▇▇▇▇▇▇▇ protocol. It is at this moment that the tenancy (with respect to the camera) begins as the camera encrypts its video stream data using this key which only the tenant can decrypt. Once the camera detects a tenancy change through a call to this function, a new key is established. Figure 2 shows the interaction among the different users and the functions of PossessionContract as proposed in [4]. The authors in [4] suggest the use of Ethereum as a public blockchain for this system. We highlight a few caveats of us- ing the public blockchain that we explored while investigating this approach. First, functions that update or store data (data stored in a smart contrac...
