<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Coinsafe - Medium]]></title>
        <description><![CDATA[Never Lose Your Bitcoins Ever. Recover your lost private key using your trusted devices. - Medium]]></description>
        <link>https://medium.com/coinsafeapp?source=rss----17a38d879801---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Coinsafe - Medium</title>
            <link>https://medium.com/coinsafeapp?source=rss----17a38d879801---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:43:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/coinsafeapp" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Coinsafe mainnet launch and what’s next]]></title>
            <link>https://medium.com/coinsafeapp/coinsafe-mainnet-launch-and-whats-next-512fb34e047e?source=rss----17a38d879801---4</link>
            <guid isPermaLink="false">https://medium.com/p/512fb34e047e</guid>
            <category><![CDATA[private-key]]></category>
            <category><![CDATA[bitcoin-wallet-recovery]]></category>
            <category><![CDATA[bitcoin-wallet]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Arnav Vohra]]></dc:creator>
            <pubDate>Fri, 17 May 2019 11:34:57 GMT</pubDate>
            <atom:updated>2019-05-17T11:34:56.957Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*hwmnK2J3BQTogH-lh-kcDw.jpeg" /></figure><p>We launched Coinsafe’s beta around four months ago in January. After resolving countless bugs, crashes (many more to come!) &amp; upgrading our architecture, I’m excited to announce the mainnet launch of Coinsafe on <a href="https://play.google.com/store/apps/details?id=app.getcoinsafe.android">Android</a> and very soon on iOS.</p><h3>What’s New?</h3><h4><strong>1) Support for mainnet BTC, ETH &amp; DAI</strong></h4><p>In our beta, we supported only testnet BTC &amp; ETH. For our mainnet version, you would be able to keep and set up key recovery for your mainnet BTC, ETH, DAI and many more coins on Coinsafe.</p><h4>2) Change in key recovery architecture</h4><p>After talking to some cryptographers, opsec people, we decided to change our key recovery architecture. Our goal with the key recovery architecture is to ensure that only you know your trusted devices and only you are in control of the recovery process. The full details of our new architecture are kept for a future blog post.</p><h4>3) New recovery schemes like 2/2 recovery scheme</h4><p>After doing our beta, we realised that people need flexibility for their k/n recovery scheme. We added 2/2 recovery scheme as it was the most demanded one in our beta. In the future we’ll provide the flexibility for users to choose both k &amp; n on their own, eg: (k=5, n=11), (k=6, n=13) etc.</p><h4>4) Ability to add coinsafe as trusted device</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*fpCKN5rYCfw3LPXYfTiNjQ.jpeg" /></figure><p>The new version allows a user to dynamically add Coinsafe as a trusted device. This is useful for cases when you want to decrease your risk of managing all your devices among yourself &amp; your friends as well cases when you have one spare device less than the recovery scheme you want to use, eg: for a 2/3 recovery scheme, if you only have two spare devices, you can add Coinsafe as the third device. This share is tied with your email and we give it back to you when you successfully verify your mail during key recovery. Having access to one share doesn’t give us any power to take your funds.</p><h4>5) Edit already added trusted devices</h4><p>In the new version, you can edit already added trusted devices allowing you to delete old devices and add new devices. You can also change your recovery scheme to a new recovery scheme. This allows for ease of use and more flexibility for the user.</p><h3>What’s Next?</h3><p>Our goal is to make it <strong>safe</strong> for everyone to hold their own <strong>coins</strong> (Coinsafe!) and this release marks the beginning of our journey in doing so. We are going to push many more new changes in the future and keep improving in order to better serve our users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=512fb34e047e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinsafeapp/coinsafe-mainnet-launch-and-whats-next-512fb34e047e">Coinsafe mainnet launch and what’s next</a> was originally published in <a href="https://medium.com/coinsafeapp">Coinsafe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shamir Secret Sharing vs Multi-sig]]></title>
            <link>https://medium.com/coinsafeapp/shamir-secret-sharing-vs-multi-sig-124a42bc1662?source=rss----17a38d879801---4</link>
            <guid isPermaLink="false">https://medium.com/p/124a42bc1662</guid>
            <category><![CDATA[recovery]]></category>
            <category><![CDATA[multisig]]></category>
            <category><![CDATA[wallet]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Arnav Vohra]]></dc:creator>
            <pubDate>Sun, 12 May 2019 14:27:48 GMT</pubDate>
            <atom:updated>2019-08-21T20:39:23.612Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wzq7ZLT1PUi37RrzG1LlOA.jpeg" /></figure><p>After the beta launch of Coinsafe, many people asked me how does Shamir secret sharing compare to a multi-sig based approach for securing one’s crypto assets. I aim to articulate the pros and cons of each approach in this post.</p><h3>Part A : Shamir secret sharing scheme (SSSS)</h3><p>SSSS is a way where you can split some data into m of n parts called secrets where if you bring m or more parts, you can reconstruct the original data. If you have m-1 or lesser parts you get no information of the original data. 2/3 SSSS applied on ‘hello’ gives the following secrets:<br>8013f2ee3bad0959eefdc5b0a<br>8027d5c6a69093795c30ab6ac<br>8034372e6d3b5a2672cb3edce<br>Clearly, knowing one part gives you no information about the original data i.e. ‘hello’.<br>For crypto asset security, SSSS is applied on a user’s 12/24 word wallet mnemonic phrase. Eg: For a 2 of 3 SSSS, someone having access to one part, wouldn’t be able to deduce anything about your wallet phrase. This is how a sample wallet mnemonic phrase looks like:</p><blockquote>witch collapse practice feed shame open despair creek road again ice least</blockquote><h3><strong>Pros:</strong></h3><h4>1) No need to get signatures from multiple devices for doing every transaction</h4><p>Think of SSSS as a backup mechanism, you generate secrets of your wallet mnemonic phrase and distribute them among a set of trusted devices &amp; friends. In case you lose your phone, your phone gets damaged etc., you gain access to a new phone and recover your mnemonic using the backed up secrets and hence gain access to your funds. Your crypto assets always stay on your main device and relevant transactions can be made from the device itself.</p><h4>2) Advanced sharing schemes like 6/11, 26/51</h4><p>SSSS utilizes polynomial mathematics and there is no limitation on m &amp; n in a m of n scheme. In the extreme case, one can use schemes like 26/51 with the 51 parts stored in places like bunkers, bank lockers, although I envision people not going over 6/11 scheme especially if they are using phones/hardware devices for storing the secrets. For a multi-sig based setup, there are limitation on m &amp; n. Eg : For a P2SH multisig with uncompressed public keys, n can be upto 7, refer <a href="https://bitcoin.stackexchange.com/questions/23893/what-are-the-limits-of-m-and-n-in-m-of-n-multisig-addresses">this</a>.</p><h4>3) Ability to support multiple coins</h4><p>SSSS can be applied on any data to create relevant secrets. If applied on a BIP39 mnemonic, the secrets can be used to generate back the mnemonic phrase which can then be used to regenerate the private keys of all the coins. <br>This mnemonic serves as the “root” of the tree and it can be algorithmically converted into the all the relevant private keys. This is why all wallet providers only require you to right down your mnemonic phrase and not private keys of the individual coins. This means SSSS can be used for backing up all crypto assets like BTC, ETH, XMR, DOGE etc. as well as all your other altcoins.</p><h3><strong>Cons:</strong></h3><h4>1) Funds have to be on one device</h4><p>One security issue with SSSS is that your crypto assets stay on one device itself, the other devices holding the relevant secrets just serve as a backup of the funds and are not required for doing any transaction. Although, if you are using a non-custodial mobile wallet like <a href="https://getcoinsafe.app/">Coinsafe</a> for storing your crypto assets &amp; say your device gets stolen, the thief would require some time to brute force your phone PIN as well as your wallet PIN to gain access to your funds. During this time, you can move your funds to a new wallet.</p><h3>Part B : Multi-sig</h3><blockquote>Multisignature (multisig) refers to requiring more than one key to authorize a Bitcoin transaction. It is generally used to divide up responsibility for possession of bitcoins.</blockquote><blockquote>Standard transactions on the Bitcoin network could be called “single-signature transactions,” because transfers require only one signature — from the owner of the private key associated with the Bitcoin address. However, the Bitcoin network supports much more complicated transactions that require the signatures of multiple people before the funds can be transferred. These are often referred to as M-of-N transactions. The idea is that Bitcoins become “encumbered” by providing addresses of multiple parties, thus requiring cooperation of those parties in order to do anything with them. These parties can be people, institutions or programmed scripts. <br>Source : <a href="https://en.bitcoin.it/wiki/Multisignature">Bitcoin Wiki</a></blockquote><h3>Pros :</h3><h4>1) Funds not on one device</h4><p>Multi-sig is a transaction type requiring signatures from multiple private keys (stored on different devices) before funds can be transferred. Your funds don’t stay on one device, if one device gets lost or stolen your funds are still intact. Eg: For a 2 of 3 multisig setup, if one of your device gets lost or stolen, you can still use the other two to create transactions.<br>This is not valid when n=m, your funds would be lost in that case, Eg: if one of your devices gets lost in a 2 of 2 setup, your funds are lost forever.</p><h4>2) Supported by protocol itself so no issue of a buggy implementation</h4><p>Multi-sig is a transaction type that is supported by the blockchain protocol itself, so there is no risk of a buggy implementation developed by a third party that can put your funds at risk.</p><h4>3) Vast ecosystem of companies provide multi-sig based solutions</h4><p>Since many companies provide multi-sig wallets, you have an option to switch your wallet provider for a better one anytime.</p><h3>Cons :</h3><h4>1) Need signatures from multiple devices for every transaction</h4><p>For doing a multi-sig transaction you require signature from multiple devices. Security of a multi-sig based approach is achieved when all the devices holding the private keys are kept at different geographic locations as a thief would need to steal devices from multiple locations to steal your funds. Such a setup with devices kept at multiple geographies is highly secure but very inconvenient especially for doing multiple transactions in a day and for normal day to day usage.</p><h4>2) Supported only by Blockchains that have in built multi-sig support like bitcoin</h4><p>Multi-sig transactions are not supported by all blockchains. Even Ethereum doesn’t support multi-sig transactions in the protocol, people use smart contract wallets that allow you to do a multi-sig transaction. Since they are not supported by the protocol itself, there are chances the smart contract implementation might contain bugs, this was observed with the Parity smart contract wallet hack that led to a loss of $300M worth of Ether at the time.<br>In general, Bitcoin forks support multi-sig transactions but most of the other cryptocurrencies don’t support multi-sig transactions. Even <a href="https://twitter.com/coinbase/status/738837596709740544">Coinbase uses Shamir secret sharing</a> instead of multi-sig for securing their crypto assets as SSSS allows one to secure multiple cryptocurrencies.</p><p>Let me know what you think about my analysis. For a working SSSS implementation that you can use to secure your crypto assets checkout Coinsafe app on <a href="https://play.google.com/store/apps/details?id=app.getcoinsafe.android"><strong>Android</strong></a><strong> </strong>&amp;<strong> </strong><a href="https://testflight.apple.com/join/WNoEZnby"><strong>iOS</strong></a><strong>.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=124a42bc1662" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinsafeapp/shamir-secret-sharing-vs-multi-sig-124a42bc1662">Shamir Secret Sharing vs Multi-sig</a> was originally published in <a href="https://medium.com/coinsafeapp">Coinsafe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Coinsafe]]></title>
            <link>https://medium.com/coinsafeapp/introducing-coinsafe-never-lose-your-bitcoins-ever-cbf69bce9099?source=rss----17a38d879801---4</link>
            <guid isPermaLink="false">https://medium.com/p/cbf69bce9099</guid>
            <category><![CDATA[bitcoin-wallet]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Arnav Vohra]]></dc:creator>
            <pubDate>Tue, 07 May 2019 13:22:30 GMT</pubDate>
            <atom:updated>2021-04-02T19:55:43.449Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*OF8D0QMTGMlEAgDAoBJgQQ.png" /></figure><p>*This article has been written in collaboration with <a href="https://medium.com/u/894169ac9a6f">Tarun Gupta</a>*</p><p>The days of lost private keys are over. Never again will you have to go to your favorite spot on the beach and cry your heart out just because you lost the private key of your bitcoin wallet.</p><blockquote><strong>“Wait what! How does this work?”</strong></blockquote><p>Using cryptography, your private key can be encrypted and safely saved in parts in your various trusted devices so that, if you ever lose your key or your phone, you can safely use some of your other trusted devices to completely recover your key. The process works in such a way that you and only you are in control of the recovery process and there is no way your key can ever be retrieved by someone else.</p><p><strong>Here’s the process explained in detail in three parts : </strong><br>Part A : Setting up key recovery<br>Part B : Understanding data stored by Coinsafe<br>Part C : Recovering forgotten key</p><h3>Part A : Setting Up Key Recovery</h3><h4>Step 1 : Email Authentication</h4><p>Within your Coinsafe app, you can click on the “Recovery” icon to initiate the key recovery process. You would first need to provide your email address and confirm the OTP received on your email address. This way we will really know it’s you who’s trying to recover your mnemonic if you ever lose it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*ehdux-dLfcSsrVS7AxD2aQ.png" /><figcaption>Email Authentication is required for setting up recovery</figcaption></figure><h4>Step 2 : Adding Trusted Devices</h4><p>Once done with authenticating yourself in step 1, you can now add usernames of your trusted devices and select the type of sharing scheme. A trusted device can be a phone of your spouse, your mom, your trusted friend or any other spare device that’s sitting in your drawer. You would need to install the Coinsafe app on every additional device but don’t worry, you won’t have to go through the entire wallet setup process on these devices. You can just initiate the app in ‘Become a Trusted Device’ mode and get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*lU6bR5M0kpVJg3hTnbCs6w.png" /><figcaption>Adding trusted devices for key recovery</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*3lSC9z1_dlEboaV8dCj0DA.jpeg" /><figcaption>Coinsafe Launch Screen With ‘Become Trusted Device’ Mode</figcaption></figure><blockquote><strong>“How does this work technically?”</strong></blockquote><p>Private keys to your Bitcoins and other cryptocurrencies on Coinsafe are all generated from your twelve word BIP 39 mnemonic. This mnemonic serves as the “root” of the tree and it can be algorithmically converted into the all private keys used in the wallet. In order to access private keys of all your cryptocurrencies you need to enter the mnemonic on the Coinsafe app and you’ll gain access to your funds.<br><strong>From here on we’ll use mnemonic interchangeably with your private key.</strong></p><p>Coinsafe didn’t want any data associated with your original mnemonic to ever leave your phone. Therefore, your original mnemonic <strong>(M)</strong> is encrypted using a <strong>symmetric key</strong> <strong>(X)</strong> to obtain an encrypted text <strong>(M’)</strong>.</p><p><strong>Following is how the encrypted text (M’) is created :</strong></p><p>A signature is calculated first using your wallet private key and sent to Coinsafe’s database. This signature is the <strong>symmetric key (X)</strong>.<br>Pseudo-code for the above step looks like :</p><p>var salt = SHA 256 hash (walletPrivateKey);</p><p>const <strong>X</strong> = calculateSymmetricKey (salt, walletPrivateKey);</p><p><strong>X obtained above looks like : </strong>MFEwDQYJYIZIAWUDBAIDBQAEQMTWsMfOhZWvjcPdwoucjvKqYbiTitQzb7qJk72s4//lt6/O+n/3J4+CaNcJUfDpHoY3q5AhLVUahPkb4RB3lgY=</p><p>Mnemonic <strong>(M)</strong> is converted into encrypted text <strong>(M’)</strong> using symmetric key encryption (with <strong>X</strong> as symmetric key).</p><p><strong>M</strong> (original mnemonic) +<strong>X</strong> (symmetric key) → <strong>M’</strong> (encrypted text)</p><p><strong>M looks like :</strong><br>bracket foil legal income neutral drive stone cloth rate tide idle clip</p><p><strong>M’ looks like : </strong>7acea6103e315cac9ea31df1b4724a724115ab810900228a15d82236b7e13d5f1d659784ad730aebad3e7e40cec86ed9f58f561464e6392ae0d218cada25840c0b057c61edd489e63b77b63742f184eab0ea0974a419f6e75b9264</p><h4><strong>Step 3 : Sharing Secrets With Trusted Devices</strong></h4><p>Shamir secret sharing algorithm is applied on the encrypted text <strong>(M’)</strong> to generate the <strong>secrets</strong>. Secrets are asymmetrically encrypted to the public keys of the trusted devices and shared with them.</p><p>Following is how the above step looks like:</p><p><strong>M’</strong> (Encrypted text) -&gt; Shamir secret sharing -&gt; <strong>S1, S2, S3, S4, S5</strong> (Secrets)</p><p><strong>S1</strong> — — Asymmetric encryption — -&gt;<strong>S1’ </strong>(shared with Trusted device 1)</p><p><strong>S1’</strong> — — Decryption — -&gt;<strong>S1</strong> (Trusted device 1)</p><p>Similarly for the secrets S2, S3, S4 &amp; S5, they are shared with trusted devices 2,3,4,5 respectively!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*5LxI8U3e_Dsg9DZrU86N1g.png" /><figcaption>Clicking on ‘Confirm’ shares secrets with trusted devices</figcaption></figure><h3>Part B : Understanding Data Stored by Coinsafe</h3><p><em>Side note — Our technical architecture regarding how we mitigate the attack vector related to Coinsafe has changed slightly after this article was written, for an updated version of the same checkout </em><a href="https://medium.com/coinsafeapp/coinsafe-has-zero-knowledge-of-its-users-heres-how-abb102fe2f97"><strong><em>this</em></strong></a><em> article.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*-NxEH6n22bDjVT90hO5Vew.png" /></figure><p>The first couple of questions that come to the mind of any technical person when we explain Coinsafe’s architecture for key recovery are along these lines:</p><blockquote>Can Coinsafe see who are my trusted devices? Can’t Coinsafe just send recovery requests to trusted devices on behalf of the user? Isn’t Coinsafe unsafe because it uses a centralised database? What if my trusted device loses their phone?</blockquote><p>Let’s try to answer the common theme of all the questions by walking through one of Coinsafe’s tables. For a more descriptive read on our technical architecture, stay tuned for our next blog post.</p><p>Table <strong>tb_trust</strong> contains information of all wallet public keys who have been added as a trusted device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*PHbcNpjVFo_7Yhg-" /><figcaption>tb_trust table</figcaption></figure><p>What happens when you add trusted devices for key recovery?</p><ul><li>Rows are added to the <strong>tb_trust</strong> table corresponding to each trusted device.</li><li>The <strong>device_public_key</strong> column contains data regarding wallet public key of the trusted device.</li><li>The <strong>trust_data</strong> column contains the asymmetrically encrypted secret (S1’, S2’, S3&#39;, S4&#39;, S5&#39;) of the respective <strong>device_public_key.</strong></li><li>The <strong>trust_data</strong> can only be decrypted by the wallet private key of the trusted device.</li><li>Since the <strong>trust_data</strong> is stored encrypted on our database, even if the trusted device loses their phone, they can download the Coinsafe app on a new phone, retrieve the encrypted secret data from Coinsafe’s database and decrypt it using their wallet private key.</li><li>No one knows (including Coinsafe!) who added the wallet public key in the <strong>user_public_key</strong> column as a trusted device. Therefore, no one knows who added whom as a trusted device and as a result can’t send recovery requests on behalf of someone else.<br>This is what we call a P2P mapping:)</li></ul><blockquote>Coinsafe can’t send key recovery requests to trusted devices on behalf of a user.</blockquote><blockquote>As the front-end code is going to be open sourced, one can easily verify the functionalities of the app and the data being sent through it.<br>Don’t Trust. Verify.</blockquote><h3>Part C : Recovering Forgotten Key</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*e4sBH4u7P94OQF1jKrZBng.png" /></figure><p>Now suppose, you lost your Coinsafe BIP 39 mnemonic and as a result you can’t generate the private keys to your coins, here’s what you need to do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*8Lgi1emPMF5u0s5DGxzo5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*gEUgZr-6QyVSV9AQBqezaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*Zcfg96TUIXsG3ZEBGJQIqg.png" /></figure><h4>Step 1 : Verify Your Email</h4><ol><li>You authenticate yourself by verifying the OTP sent to your email.</li><li>You get back your old wallet public key.</li><li>A new public, private key pair is generated for you.</li></ol><h4>Step 2 : Select Trusted Devices and Get Back Shared Secrets</h4><ol><li>You add your trusted devices for key recovery and encrypt your old wallet public key on the public keys of trusted devices.</li><li>A request is sent to all trusted devices to share their secrets.</li><li>Trusted devices decrypt their <strong>trust_data </strong>from the <strong>tb_trust table</strong> locally.</li><li>If your old public key is found in the <strong>trust_data</strong> then a trusted device retrieves the shared secret and encrypts it onto your new public key.</li><li>You decrypt the data shared by all the trusted devices locally using your new private key.</li><li><strong>You are able to get M’ back.</strong></li></ol><h4>Step 3: Recreate The Original Mnemonic!</h4><ol><li>As an additional security step, you again need to verify your email by entering the correct OTP.</li><li>Coinsafe’s server encrypts the symmetric key <strong>(X)</strong> onto your new public key and sends it to you.</li><li>You decrypt the data sent by the server using your new private key.</li><li><strong>You are able to get X back.</strong></li><li>By decrypting <strong>M’</strong> using <strong>X</strong> ,you get your original mnemonic <strong>(M)</strong> back.<br>As a result you can generate private keys of all your cryptocurrency wallets.<br><strong>M’</strong> (encrypted text) + <strong>X</strong> (symmetric key) — — Decryption —-&gt; <strong>M</strong> (original mnemonic)<br>Voila!</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*u3SRYj7JohPMeIhhgtFUHw.gif" /></figure><p>Coinsafe App Beta version :<br><a href="https://play.google.com/store/apps/details?id=app.getcoinsafe.android"><strong>Android</strong></a><strong> </strong><br><a href="https://testflight.apple.com/join/WNoEZnby"><strong>iOS</strong></a></p><p>We will be releasing more updates for the Coinsafe app soon in preparation of our mainnet launch! <br>For now, follow our <a href="https://medium.com/coinsafeapp"><strong>blog</strong></a> and <a href="https://twitter.com/coinsafeapp"><strong>twitter page</strong></a> to stay on top of our latest posts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Fnx1bicyHF7Z08eSJ-K2_g.jpeg" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbf69bce9099" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinsafeapp/introducing-coinsafe-never-lose-your-bitcoins-ever-cbf69bce9099">Introducing Coinsafe</a> was originally published in <a href="https://medium.com/coinsafeapp">Coinsafe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coinsafe has zero knowledge of its users. Here’s how.]]></title>
            <link>https://medium.com/coinsafeapp/coinsafe-has-zero-knowledge-of-its-users-heres-how-abb102fe2f97?source=rss----17a38d879801---4</link>
            <guid isPermaLink="false">https://medium.com/p/abb102fe2f97</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bitcoin-wallet]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Arnav Vohra]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 10:20:37 GMT</pubDate>
            <atom:updated>2019-01-27T10:19:38.193Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*yrT41chZhAb6WIOZ3y3vzw.png" /></figure><p>The first couple of questions that come to mind of any technical person when we explain Coinsafe’s architecture for key recovery are along these lines :</p><blockquote>1) Can Coinsafe reclaim part of a secret from one or more trusted devices?<br>2) Can Coinsafe see who are my trusted devices? <br>3) Can Coinsafe send recovery requests to trusted devices on my behalf?<br>4) Can Coinsafe see the secrets shared with the trusted devices?</blockquote><p>In this article, we’ll walk you through the data sent by you to Coinsafe when using the key recovery functionality and, as a result, try to answer all the questions stated above in two parts:</p><p><strong>Part A: Setting up key recovery<br>Part B : Recovering forgotten key</strong></p><p>We take user data privacy seriously and hugely value our reader’s feedback and insights. <br>After reading this post, please get in touch on <a href="http://twitter.com/coinsafeapp">@coinsafeapp</a> or join our <a href="https://t.me/coinsafeapp">telegram community</a> to share any feedback you have for us.</p><h3>Part A : Setting up key recovery</h3><h4>How Does Secure Communication Work On Coinsafe</h4><p>Let’s first walk through how Coinsafe uses public-key cryptography for establishing a secure communication between you and your trusted devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xz9vzbOPhSwaARhAO1hBog@2x.png" /><figcaption>Coinsafe secure communication when ‘Setting Up Recovery’</figcaption></figure><p>All Coinsafe users have a 12 word BIP39 mnemonic associated with their wallets. This mnemonic is used to generate a wallet public, private key pair which is used for the secure communication. <br>Let’s understand the above through an example:</p><p><strong>When setting up recovery: </strong><br>1) You need to share secret data with your trusted device. <br>2) You do this by asymmetrically encrypting the secret data on the wallet public key of the trusted device. <br>3) This encrypted secret data gets stored in Coinsafe’s database.</p><p><strong>When recovering your forgotten key:</strong><br>1) You are assigned a new wallet public, private key pair. <br>2) You send a request to the trusted device to share the secret data to you. <br>3) The trusted device retrieves the secret data from the Coinsafe’s database, decrypts it locally using their private key to obtain the secret and pushes new secret data to Coinsafe’s database by asymmetrically encrypting the data on your new public key. <br>4) This secret data is then retrieved by you and decrypted locally using your private key.</p><blockquote>1) Can Coinsafe reclaim part of a secret from one or more trusted devices?</blockquote><p>The secure communication architecture answers the first question.</p><p><strong>Answer #1 :</strong> Since only an encrypted secret travels outside of the user’s device and it only gets decrypted locally on the trusted device, Coinsafe can’t reclaim part of the secret.</p><p>Now, let’s step by step walk through the data that goes from your front-end when you are setting up recovery:</p><h4>Step 1 : Adding Trusted Devices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*IgnDtW96iXL6qR1i73sAyQ.png" /><figcaption>Clicking on ‘Add’ adds a particular trusted device</figcaption></figure><p>When setting up key recovery, you add your trusted devices via their wallet public key. You can assign a nickname to them to easily identify which public key belongs to whom and this data is only stored locally on your device.<br>When you click on the add button, the following data is sent from the front-end to Coinsafe’s server:</p><p>{ “device_public_key_hash”: “ae7785412b8e029c197c8a5a176f365a238d7a12a47f6af22587fe7df3051a04”}</p><p>The hash of the trusted device’s public key is sent to the Coinsafe server to check whether the trusted device is a valid Coinsafe user and not an incorrect string. Coinsafe uniquely identifies its users using the hash of the wallet public key as a user’s wallet public key and private key never leaves their device.</p><h4>Step 2 : Sharing Secrets With Trusted Devices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*URRn2s_SNZIs4XCoK_yfww.png" /><figcaption>Clicking on ‘Send Secrets’ shares secrets with the trusted devices</figcaption></figure><p>Once the number of trusted devices required for the selected secret sharing scheme are added, you need to click ‘Send Secrets’ to encrypt the secret data on the respective public key of trusted devices and push this data to the database. The following JSON object is sent from the front-end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Sg8bOa9Itqvl546saHnSkQ.png" /></figure><p>Let’s try to understand what does each field in this JSON object mean:<br><strong>“user_api_token”</strong> — Token for user session management.<br><strong>“trust_data” </strong>— Trust data contains an array of objects and the size of this array is equal to the number of trusted devices added by you.<br>Let’s walk through one of these objects as all other objects are similar to this:</p><blockquote>“device_public_key_hash”: “”,<br> “encrypted_trust_data”:<br>{“user_public_key_hash”:,<br> “secret”: “”}</blockquote><p><strong>“device_public_key_hash”</strong> — Hash of the wallet public key of the trusted device.<br><strong>“encrypted_trust_data”</strong> — Data encrypted on the wallet public key of the trusted device.<br><strong>“user_public_key_hash” </strong>— Your public key hash asymmetrically encrypted on wallet public key of the trusted device.<br><strong>“secret”</strong> — Secret data asymmetrically encrypted on wallet public key of the trusted device.</p><p>This is how the encrypted_trust_data actually looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*QNQx7zwG1RI3qJtnLCVgIQ.png" /></figure><blockquote>2) Can Coinsafe see who are my trusted devices? <br>3) Can Coinsafe send recovery requests to trusted devices on my behalf?<br>4) Can Coinsafe see the secrets shared with the trusted devices?</blockquote><p><strong>Answer #2:</strong> Since you only send the hash of the wallet public key of the trusted device, Coinsafe can’t see who your trusted devices are.<br><strong>Answer #3:</strong> For a key recovery service to be successful, it is important that the service provider doesn’t know trusted devices added by you and is not able to send recovery requests to them on your behalf to gain access to the shared secrets as a result.<br>Since, Coinsafe can’t identify your trusted devices (we only know the hash of their wallet public keys), we can’t send recovery requests to them on your behalf.<br><strong>Answer #4: </strong>The secret is asymmetrically encrypted on the wallet public key of the trusted device. Hence, only your trusted device can see the secret shared with them.</p><h3>Part B : Recovering forgotten key</h3><p>When you initiate the process of recovering your forgotten key, you are assigned a new wallet public, private key pair for securely communicating with the trusted device. The trusted device sends the secret data to you by asymmetrically encrypting it on your new wallet public key.</p><h4>Step 1 : Selecting Trusted Devices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*1ch46BPkegnzs-Z4QH5flw.png" /><figcaption>You select your recovery sharing scheme and then your trusted devices</figcaption></figure><p>As a first step for recovering your lost key, you select your sharing scheme and add your trusted devices for key recovery, this process is exactly similar to step 1 of ‘setting up key recovery’. The following data is send from the front-end:</p><p>{ “device_public_key_hash”: “ae7785412b8e029c197c8a5a176f365a238d7a12a47f6af22587fe7df3051a04”}</p><p>This is done to make sure that the trusted devices added are valid Coinsafe users.</p><h4>Step 2: Sending Recovery Request &amp; Getting Back Shares</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*qREP1zTLL-1O2CSsoqTwpg.png" /></figure><p>You send a request to the trusted devices to send you the secret data back. The following JSON object is sent from the front-end in this step:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*ykxqGENLXDAGg4VluXGveg.png" /></figure><p>As in Part A, let’s try to understand what does each field in this JSON object mean:</p><p><strong>“user_api_token”</strong> — Token for user session management.<br><strong>“trust_data”</strong> — Trust data contains an array of objects and the size of this array is equal to the number of trusted devices in the sharing scheme.<br>Let’s walk through one of these objects as all other objects are similar to this:</p><blockquote>“device_public_key_hash”: “”,<br> “encrypted_trust_data”:<br>{ “user_old_public_key_hash” : “”,<br> “user_new_public_key”: “”}</blockquote><p><strong>“device_public_key_hash”</strong> — Hash of the wallet public key of the trusted device.<br><strong>“encrypted_trust_data” </strong>— Data encrypted on the wallet public key of the trusted device.<br><strong>“user_old_public_key_hash”</strong> — Your old wallet public key hash asymmetrically encrypted on wallet public key of the trusted device. This is used by the trusted device to uniquely identify which user is sending them a recovery request, as there can be multiple users who would have added the current device as a trusted device.<br><strong>“user_new_public_key”</strong> — Your new wallet public key asymmetrically encrypted on wallet public key of the trusted device. Trusted device sends the secret back to you by asymmetrically encrypting it on your new public key.</p><p>This is how the encrypted_trust_data actually looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*F5wxMQn6Qmuvaa3nYsj2rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*oJjZFr37dM3BJYaUdhZKGQ.png" /><figcaption>Getting back shares and recreating mnemonic</figcaption></figure><p>The trusted device accepts your recovery request and sends you the encrypted secret data, you decrypt the data locally using your new wallet private key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*9iCRUJfyFwiQxafyvkCymg.png" /></figure><p>Once, the required number of trusted devices accept your request and send you the secret data, you can recreate your original mnemonic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*q4jsZRKiQeX5yY_blXOQQA.png" /></figure><p>Coinsafe’s architecture only requires us to take minimalistic user data and is the answer to all the privacy and security questions one can think of!</p><p>Previous Post : <a href="https://medium.com/coinsafeapp/introducing-coinsafe-never-lose-your-bitcoins-ever-cbf69bce9099"><strong>Introducing Coinsafe</strong></a><br>Coinsafe App Beta version :<br><a href="https://play.google.com/store/apps/details?id=app.getcoinsafe.android"><strong>Android</strong></a><strong> <br></strong><a href="https://testflight.apple.com/join/WNoEZnby"><strong>iOS</strong></a></p><p>We will be releasing more updates for the Coinsafe app soon in preparation of our mainnet launch.</p><p>For now, follow our <a href="https://medium.com/coinsafeapp"><strong>blog</strong></a> and <a href="https://twitter.com/coinsafeapp"><strong>twitter page</strong></a> to stay on top of our latest posts. We welcome feedback from the community and are open to collaborations, so please join our <a href="https://t.me/coinsafeapp"><strong>telegram community</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*t5MEp4LR2jBFfH1Bn5VBPQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abb102fe2f97" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinsafeapp/coinsafe-has-zero-knowledge-of-its-users-heres-how-abb102fe2f97">Coinsafe has zero knowledge of its users. Here’s how.</a> was originally published in <a href="https://medium.com/coinsafeapp">Coinsafe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>