Keystore Introduction
keystore introduction key players in the blockchain industry: user, wallet and node in the blockchain industry, there are a few important key players: user, wallet, and node. the user can use the blockchain technology to send or receive cryptocurrencies. a user can be an active user of blockchain-based applications, also known as dapps (decentralized app) to raise a crypto asset, like a cute character in a game. the user may also post an interesting article on a blockchain-based sns, where the user gets credits for the number of likes or comments from other users. all of these use cases require the user to connect to the blockchain network. wallet or dapps provide the user an interface to connect to the blockchain network, such as bitcoin or ethereum. unlike the traditional wallets, blockchain wallets do not hold any money or an asset of the user, but simply show users a record of all transactions on the ledger that are related to the user’s account. when a user tries to send a certain amount of cryptocurrency to another user, the wallet creates a transaction in a correct format to submit to the blockchain network. one of the key components of a transaction is a user’s signature. a wallet must be able to sign a transaction with the user’s private key. some wallets generate a key pair in the wallet by itself and sign the transaction upon user’s request. some may not generate the key pair itself, but instead, support the use of a separate hardware wallet, which will store the key and complete the signature part of a blockchain transaction. nevertheless, because there is a fee that must be paid in order to write on the ledger of the blockchain network, a user’s signature that implies that the user has checked and approved the fee, cannot be emphasized enough. lastly, when a wallet or a dapp submits the signed transaction to the blockchain network, nodes, similar to server, checks the validity of the transaction and use a consensus protocol to agree whether to include the received transaction in the ledger or not. if it is included, then the transaction is now shared to everyone participating in the network. digital signature in blockchain using a digital signature in the blockchain is one of the fundamentals to understand the technology. the user’s digital signature implies many things. by signing the transaction, the user is confirming that the information in the transaction, such as the recipient address, amount, and fee, are all correct. the signature also guarantees the identity of the user. only the user that actually holds the key can sign the transaction, because there will be a different result if a different key was used to sign the transaction. digital signature provides non-repudiation as well, since it is a combination of the user’s key and the contents, thereby the user cannot deny its existence. because there is no centralized server that controls the network in blockchain, it is impossible to cancel or reverse a transaction that has been submitted to the network. hence, the biggest challenge that the wallets and dapps face is how to sign a transaction safely. to sign a transaction, a user’s private key is needed. in other words, the user’s private key is what must be kept in a safe place. moreover, the execution environment, where the signing is happening, must be also safe. advent of hardware wallets to avoid the security threats of computer viruses and other remote dangers in the web environment, hardware wallet came out into the world. along with a print out, or a paper wallet, hardware wallet is one of the choices of cold wallet, a wallet that is not connected to the internet. a hardware wallet usually has a separate space to create, store and use the private key. in such an isolated environment, hardware wallets are invulnerable to remote attacks. hardware wallets also have a separate secure display to get user’s confirmation of the blockchain transaction. the information shown by the hardware wallet’s screen is independently displayed from the host that it is connected to, such as the computer. yet, there are usability issues when it comes to using a hardware wallet. the user must carry the wallet around and make sure to keep that hardware wallet in a safe place. also, the complexities and inconvenience of plugging the hardware wallet usb and running an online web app on the computer, and using the hardware wallet to sign a transaction still remain as a challenge. samsung blockchain keystore launched with galaxy s10 series at the beginning of the year 2019, samsung blockchain keystore was launched with the galaxy s10 series to store the user’s private key in the secure area of the phone and sign blockchain transactions in a safe environment. as a preloaded feature on selected devices in selected countries, samsung blockchain keystore aims to contribute to the blockchain ecosystem to help users and blockchain apps leverage security features of the device and thus, safely use blockchain technology on the mobile. samsung blockchain keystore can be found by going to the device’s settings > biometric and security. under the security category, you will see “samsung blockchain keystore.” with the samsung blockchain keystore app, users can leverage features including key management, signing a transaction, setting up a pin and a fingerprint as an authentication method, and managing samsung blockchain keystore settings options. more details on each feature are as follows. ① key management the user can create a new key pair (public and private key) or import an existing one that was created from other wallets. more specifically, samsung blockchain keystore supports bip-39 (bitcoin improvement proposal) standard, and is a hd (hierarchical deterministic) wallet. more details will be covered in the key management section. in the set up page, “create a new wallet” means generating a root seed, that can derive both a public key and a private key used to make blockchain-based transactions, payments or contracts in decentralized apps or other wallet services that have integrated with samsung blockchain keystore. because this root seed is about 128 to 256 bits of 0 and 1, and is not friendly to read nor remember, 12 to 24 words of recovery phrase can replace the root seed. anyone who knows the recovery phrase can access and sign the blockchain transactions. so the user will need to write down the 12 words and make sure not to lose it. note that once the process is complete, samsung blockchain keystore will never ask the user to enter all the words again. “import an existing wallet” means the user already has 12 to 24 words of recovery phrase, created in samsung blockchain keystore on a different device, or from other wallets that support bip-39 standard. once the user enters the correct words of recovery phrase, the wallet will be imported and the set up process is complete. likewise, once the process is complete, samsung blockchain keystore will never ask the user to enter all the words again. ② sign a transaction the user can send cryptocurrency or purchase a crypto item in blockchain apps that have been integrated with samsung blockchain keystore. in the midst of proceeding a blockchain transaction, the user can check sensitive information of the transaction, such as the recipient address, sending the amount and the fee on a secure screen, called trusted user interface (tui) executed by samsung blockchain keystore, and confirm the transaction for samsung blockchain keystore to sign it. ③ pin and fingerprint management during the process of setting up a wallet, the user will need to set up a six-digit pin to protect the crypto assets. a pin is a verification method for cryptocurrency transaction, payment and smart contract in samsung blockchain keystore-integrated services. if the user has a fingerprint registered on the device, then the user can also set up a fingerprint as the alternative authentication method. the pin or fingerprint will be asked every time a user wants to sign a blockchain transaction, check confidential information, like the recovery phase, or change pin. ④ manage samsung blockchain keystore once the user has set up the wallet, when the user clicks “samsung blockchain keystore” menu in the device’s settings (biometric and security), the user will land on samsung blockchain keystore’s main page, where the user can manage samsung blockchain keystore-related options. the user can change the pin, enable or disable fingerprint as an authentication method, check recovery phrase and reset samsung blockchain keystore. other things, such as setting alarm notifications or connecting to a channel to send questions or comments to samsung blockchain team can be found here as well. more information, such as how to use, or notices from samsung blockchain team, terms and conditions, and other information related to samsung blockchain keystore are also available. what will be covered? throughout this site, we will look deep into the samsung blockchain keystore. the following items will be discussed. security considerations when building samsung blockchain keystore and bringing the blockchain ecosystem onto the mobile. overall architecture of how samsung blockchain keystore is designed and end-to-end service flow, including the exact role of samsung blockchain keystore sdk that will be integrated into your app. security measures including the execution environment and how keys are generated will be explained in detail. benefits for developers integrating samsung blockchain keystore sdk and what kind of services we welcome.