Catenis makes it simple to retrieve messages logged to the Bitcoin blockchain or that have been sent to target applications/devices. It removes the need to know where the content is stored or any of the difficult technical details required to interact with the blockchain. A developer only needs to make one RESTful service call to the Read Message API and Catenis takes care of everything else. When a “read message” method is used, the following happens in this order:
- Checks the effective permissions to see if requesting Catenis virtual device has the authority to read content requested.
- Retrieves the Bitcoin transaction based on the message ID (link here).
- Parses the Bitcoin transaction to retrieve the message content or the IPFS hash if the message’s content if it is larger than 75 bytes.
- Retrieves the encrypted content from IPFS using its hash (if the content is stored on the IPFS).
- Decrypts the content.
- Delivers the content in JSON format as a response to the read method RESTful web service call.