Together with UBIRCH, we have boosted our 1NCE IoT Flat Rate by adding a blockchain security component to our IoT FlexSIM card to combine high quality IoT connectivity with blockchain-based IoT security. The outcome is the Blockchain on a SIM solution. The following sections of the guide will provide an overview of the features and implementation offered by the UBIRCH Blockchain solution.
The SIM application client provides signature and chaining services to seal original data, generated on embedded devices through the SIM card. It takes care of packaging the hashed data and signing the package into the UBIRCH PROTOCOL PACKET (UPP) . Sending the UPP to the UBIRCH backend must be handled by the customer application. At the backend the anchoring in the blockchain is performed. The backend can also be used to verify already anchored UPPs.
The original data must be stored in a customer database to be able to execute verification requests at a later stage. UBIRCH does not store any original sensitive data!
If the SIM Card is used together with the UBIRCH test kit, the sensor data is sent to the UBIRCH Simple Data Service, which stores the data. It is an example for a data service to be implemented by the customer.
UPP data is sent to the SIM application via SIM APDU commands. The data encoding and handling of AT commands is done by the library code. Each SIM card comes pre-provisioned with a UUID Universally Unique Identifier) and a cryptographic key pair that is registered with the UBIRCH backend system and just needs to be claimed using the IMSI of the SIM at the [UBIRCH console] (https://id.prod.ubirch.com/auth/realms/ubirch-2.0/protocol/openid-connect/auth?scope=openid&state=GlFTOMMdHcg_W0VRWmF29PUJtci8AuGQOyYonO_KoJk.Qq9x8PTUuaw.ubirch-2.0-user-access&response_type=code&client_id=ubirch-default-realm-connector&redirect_uri=https%3A%2F%2Fid.prod.ubirch.com%2Fauth%2Frealms%2Fubirch-default-realm%2Fbroker%2Fubirch-2.0-centralised-user-auth%2Fendpoint&nonce=175f1067-d429-4f56-8f97-2708f500f39a).
To claim the SIM and start working with the SIM Application, simply follow the steps in Setup SIM card and device . If you still cannot manage to setup your device, please also check the UBIRCH FAQs and if this does not help, Contact UBIRCH.
The UBIRCH Trust Service is a fast cloud-based backend responsible for identity management, blockchain anchoring, device and account management. It offers simple to use REST API endpoints to anchor incoming UPPs and to verify received data.
To improve performance, scalability and to keep transaction cost manageable, the UBIRCH Trust Service creates its own merkle-tree structure, aggregating incoming UPPs into larger root-hashes, which get anchored into a blockchain every minute.
The Trust Service is built as a Kubernetes cluster being hosted on Microsoft AZURE. All performance-critical components can equally be deployed on-premise, should the necessity arise. It is optimized for very high throughput.
The following two sections will shortly describe the two most important processes of sealing and verifying data.
In general the process always consists of:
- Seal data at the point of its 'birth' with the UPP.
- Anchor the UPP into the blockchain.
- Verify received data against its UPP in the blockchain.
The following simplified sequence diagram uses pseudo code to show the process of sealing and anchoring data. This example shows the usage of an application which is sharing data /measurements, test results) with any kind of data receiver. This is just an example to show the process and not necessarily the exact final architecture to use UBIRCH.
- The customer device creates data.
- The customer device hashes the data, as a unique digital fingerprint.
- The customer device sends the hash to the UBIRCH NANO client on a SIM, where a signed UPP is created.
- The customer device sends the data to the customer application for storage and further processing.
- The customer device sends the UPP to the UBIRCH TRUST SERVICE.
- The UBIRCH TRUST SERVICE verifies the origin of the UPP by checking the signature.
- The UBIRCH TRUST SERVICE aggregates the UPP.
- The UBIRCH TRUST SERVICE anchors the UPP in the public blockchain.
Each received data packet which has been sealed with the UBIRCH CLIENT (has been ubirched) at the place of its 'birth', can easily be verified by the receiver, regarding its authenticity, integrity and chain validity. Since the seal is not directly attached to the data and anchored to the blockchain, the verification can be done by anyone, who has (access to) the data. This process is completely independent from the channel of transmission, which has been used to share the data and is also beyond any system boundaries.
The following simplified sequence diagram uses pseudo code to show the process of verifying UBIRCHed data (HASH-method).
- The customer application acquires the data to verify.
- The customer application recreates the hash of the data, like it was created on the device (before creating the original UPP).
- The customer application sends this hash to the verification endpoint of the UBIRCH TRUST SERVICE.
- The UBIRCH TRUST SERVICE looks up the original UPP, based on the incoming hash.
- The UBIRCH TRUST SERVICE checks the signature of the found UPP.
- The UBIRCH TRUST SERVICE looks up the blockchain transaction, which contained the according UPP.
- The UBIRCH TRUST SERVICE returns OK (or NOK) and all the proofs needed to cryptographically reproduce the validation result.
The UBIRCH client is provided as a SIM application (SIGNiT) and additional library code that handles the communication between customer code and the SIM card application. The library code is provided as open source. A hardware test kit based on Pycom modules is available.
Library Source Repository: https://github.com/ubirch/ubirch-protocol-sim
TestKit Source Repository: https://github.com/ubirch/ubirch-testkit
- A system with access to a modem that supports AT+CSIM commands.
- Alternatively a ubirch test kit.
The SIM application is protected by a unique PIN. The example test kit code handles retrieving the PIN from the UBIRCH backend. Developers should consider storing this PIN securely on the device, as it is the key to cryptographic functionality provided by the SIM application.
Need help with the UBIRCH Blockchain? Feel free to reach out to the Ubirch Helpdesk
Updated 14 days ago