获取Tangem

How Your Tangem Wallet Works Without Tangem: Apocalypse Scenario

Earth, 2047. Gamma Cephei aliens have invaded and ruined our planet. The world's internet infrastructure was severely damaged, and only the decentralized information systems survived. The Earth Protection Committee outlaws the circulation of depreciated fiat money — crypto is now the only legal tender.

Suppose Tangem HQ was destroyed by a downed flying saucer. The flamethrower team, cleaning out a hiding place of aliens, damaged the server room at the headquarters in Zug. As for the data center in Munich, it worked for a few more months longer due to the dual redundancy. But it eventually shut down, too.

Millions of Tangem Wallet users freeze in terror, but surprisingly, their Tangem Wallets still function properly. They can still buy a crispy fried cephalopod for two bitcoins with their Tangem Wallet. And here's why it's possible.

How Tangem Wallet Sends Transactions

To send crypto from your Tangem Wallet, you need to open the Tangem app, choose a token, and type the address and amount. When you've entered everything and pressed "Send", the app generates a transaction message for the blockchain.

Now, the transaction has to be signed. The app asks you to tap the Tangem card on your smartphone and enter the access code. If the access code is correct, the card's chip signs the transaction with your private key and sends the transaction back to the app.

Now, we need to send the transaction to the blockchain. The app accesses one of the publicly available API servers of the selected blockchain. These are the servers that are responsible for the interaction of the blockchain with various crypto apps. If some API doesn't work, the Tangem app communicates with another one, and so on, until it finds a working one. The app knows 3-5 APIs for each blockchain, so for a blockchain to be completely inaccessible, something really catastrophic has to happen — an extinction-level event such as the sun exploding.

Once the API has responded, the Tangem app gives it your signed transaction, and the API sends it all to the right blockchain. The transaction is submitted to the new block, and soon, you see your balance reduced, and the recipient sees the received crypto.

As you have learned by now, no Tangem servers are involved in sending and receiving transactions in your wallet.

apocalypse_22 eng.png

What Tangem services does the Tangem Wallet use?

However, the app uses a number of Tangem services for your convenience. For example:

1. Card Validation. Upon the first activation, the app sends an encrypted message to the server. The server checks the message, and if everything is ok, you can proceed with the wallet. However, if the message is incorrect, the app will inform you that the card may be compromised. 

If the validation server is unavailable, the app will warn you that it cannot verify the card.

2. Portfolio Value. When the app displays your balance, it interacts with the Tangem server for the current exchange price of each token in fiat currency and calculates the full value of your portfolio.

If the value server is not available, you will still view your balance, but instead of its fiat value you will see dashes.

3. Token List Synchronization. When you add a token to your home screen, the app sends the sync server the card number and token ID. Then, if you use that card with another phone, you'll still see the same list of your tokens on the home screen, as the app gets it from the server. It's the same with the other cards of the same pack: if you add a token on one of them, the app displays it on the other cards as well.

If the sync server is unavailable, the app will only display token lists that are stored locally, on that smartphone. You will see only BTC and ETH balances with other phones, the other tokens will have to be added again.

apocalypse_223 eng.png

What if you don't have the Tangem app?

During the interstellar invasion, the threat of aliens taking control of tech behemoths — Apple and Google — is real. The aliens can force them to destroy their companies and eliminate both the App Store and Google Play. But you don't have to worry! Earthmen can still use a reliable, secure, and convenient means of managing cryptocurrency, such as the Tangem wallet. Here's why.

The Tangem app is open-source. This means that each app version is automatically published on a special resource: https://github.com/tangem. This is a very reliable service containing tens of millions of IT projects. All GitHub data is backed up in different places on the planet, including Arctic Code Vault, a long-term archival facility 250 meters deep in the Svalbard archipelago in a mine.

photo_2022-12-23_17-43-53.jpg

GitHub CEO Nat Friedman at an alien observation station on Svalbard. Photographer: Guy Martin for Bloomberg Businessweek

The Tangem repository on GitHub contains the full app code for Android and iOS, as well as a setup file for Android (APK-file).

If you need to install the Tangem app on your new Android smartphone and it is no longer available in the app stores, just open https://tangem.com and click on "Download APK". If the company's website is also unavailable, you need to access Github, type "Tangem" in the search bar, choose the Tangem-binaries repository, and download the app-release.apk file from there. 
With iOS, It is not that easy, but you can always befriend some iOS developer who will give you access to the application through the TestFlight beta testing system. Or you can just find an Android smartphone.

However, if you have mobile app developers friends, or you can code yourself, you can develop your own app for interaction with Tangem wallet from the published code. And even improve it if you want.

Victory? Victory!

So, the Cephei aliens are defeated and shamefully expelled, the decentralized economy grows, and Tangem wallets continue to work and please their owners with convenience, reliability, and security. Unfortunately, the manufacturing technology of high-tech electronics was lost during the battles with the aliens, and microchips are no longer produced. But Tangem Wallet users do not have to worry: the lifespan of Tangem Wallet is actually more than 25 years, and hopefully, by that time, Earthmen will master electronics again and will probably release Tangem Wallet 3.0.