<p dir="auto">The aim of this proposal is to reimburse the cost of the process to make it possible to use Ledger hardware wallets to secure Hive accounts. <strong>All the work that is mentioned in this proposal has already been done and all the software is <a href="https://gitlab.com/engrave/ledger" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">open-source. The entire process took almost 2 years and involved multiple parties paid up-front by me but it's done and <a href="https://peakd.com/hive/@engrave/hive-is-now-officially-supported-by-ledger" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Hive is now officially supported by Ledger.
<h1>Proposal subject
<p dir="auto">The proposal will reimburse the following items (each described in detail later):
<ul>
<li>review of the previous app developed by another developer
<li>contributing to the old app to add the latest operations and trying to fix it to work with the new Ledger SDK
<li>development of the Ledger app from scratch to use the latest SDK and unify user experience for every Ledger model (Nano S/S+/X)
<li>development of automated tests to cover the source code (high coverage of unit tests, integration tests, etc)
<li>development of the Typescript library to enable communication with Ledger application
<li>development of the CLI tool for Ledger to make the initial Functional Review
<li>professional graphic designs for hiveledger.io
<li>development of a feature-full Hive Ledger Online Wallet (companion app)
<li>writing excessive documentation and supporting the Ledger team during the audit and approval process
<li>supporting other developers and users
<h1>Proposal amount: 90,000 HBD
<p dir="auto">The proposed amount will cover all the labor costs put into the development by me, hired developers, and the graphic designer along with all necessary equipment (hardware wallets that have been used for development, etc). It also covers recurring costs like domain name and hosting for the next few years.
<p dir="auto">As this is a reimbursement proposal, I'm asking for <strong>3000 HBD daily during the <strong>30 days period.
<h1>What will happen if the proposal doesn't get funded?
<p dir="auto">All the work mentioned in this proposal has been already done and <a href="https://peakd.com/hive/@engrave/hive-is-now-officially-supported-by-ledger" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Hive is already officially supported by Ledger. All the software created during the process is open-sourced and publicly available. The only thing that will happen is that I will be sad about doing 2 years of professional work for free ;)
<h1>Motivation
<p dir="auto">There were three major reasons why I decided to start working on this:
<ul>
<li>I believe it's really important for the blockchain to have hardware wallets support to express that the project is mature enough to become considered serious and secure
<li>I wanted to use a hardware wallet to protect my Hive account and feel safe
<li><strong>I was eager to show that Hive ecosystem is capable of developing high quality, well looking and feature-full software
<p dir="auto">I'm supporting Hive from the very beginning and have been around developing useful stuff since Steem's days. I believe <strong>we can start acting like professionals and I decided to show that we're capable of doing serious stuff. I wanted to make it possible to use hardware wallets to secure Hive accounts and create <strong>best wallet available. In order to achieve the goal, I went through all the steps involved in software development: research, UX design, UI design, development, testing, and more. I made the major part of the job by myself but also <strong>paid up-front for the work of a few external contractors from my pocket to make sure I will be able to finish it.
<h1>Benefits of hardware wallets support
<h2>Improved security
<p dir="auto">Hardware wallets are considered one of the best ways to manage your crypto assets. Using a hardware wallet increases overall security because you never expose your private keys to the outside world. Private keys are securely stored inside the hardware and never leave it. Even if you connect the device via USB, there is no way to leak your private keys. That's essential for your account security as we all know that leaks happen all the time, even to those who take special care to prevent them.
<h2>More exposure for the Hive ecosystem
<p dir="auto">It also opens Hive to a broader audience. From now on, it can be targeted to people that rely on hardware wallets to protect their assets. It often happens, that crypto projects without hardware wallets support are not taken seriously. It is not a case anymore for Hive and combining it with 20% APR for keeping our stable coin, makes a great opportunity to start onboarding more and more serious investors. Making Hive mainstream is our common goal and is a win-win for every one of us.
<hr />
<h1>The process
<p dir="auto">The process to get official support from Ledger is long and complex. It requires the development of a hardware wallet application (low-level C language programming skills required), a companion app (online wallet that is easy to use for the end user), additional libraries to enable easy usage for other developers, excessive documentation for Ledger team and users, and even more.
<p dir="auto">Depending on the release type, different deliverables are required by Ledger. We were aiming for public release and official support:
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/xfeqP49.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/xfeqP49.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/xfeqP49.png 2x" />
<p dir="auto">Each deliverable is composed of multiple additional steps and requirements. For example, the <strong>Security deliverable requires:
<ul>
<li>Manual Code Reviews
<li>Automated Static Code Analysis
<li>Automated Security Check with CodeQL
<li>Zero warnings during compilation
<li>Units tests must be present
<li>Functional tests must be present
<li>External Security audits must be performed
<li>App must have proper permissions and flags
<li>App must be restricted to Coin-Specific BIP32 prefix
<li>App must follow Good Practices for Transaction Handling
<p dir="auto">Additionally, the Ledger team performs a set of reviews of the application before they decide to publicly list the blockchain on their site:
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/eKHfUeE.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/eKHfUeE.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/eKHfUeE.png 2x" />
<h1>What has been done
<p dir="auto">Most of my journey to bring the Ledger support is documented on the Hive blockchain as I was posting multiple articles to keep the community updated with the process.
<h2>Review of the old source code and the attempt to fix it
<p dir="auto">It all started at the beginning of the year 2021. It's not a secret that there was an attempt to develop a Hive ledger application in the past. There was a proposal that was paid up-front and the work has never been finished (btw, that's the reason I decided to create a reimbursement proposal <strong>after making sure we are officially supported by Ledger).
<p dir="auto">I started my journey by reading and reviewing the old source code. It was... far from what I expected from a quality code, especially the code that is responsible for making Hive accounts more secure.
<p dir="auto">I performed some manual tests and decided to fix bugs and even improve it by adding support for new operations that were introduced in Hardfork 25. I contributed to the project but my changes were never accepted and now the old repository got archived and is dead.
<ul>
<li><a href="https://peakd.com/hive-139531/@engrave/ledger-app-updated-with-hf25-operations" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Ledger App updated with HF25 operations
<li><a href="https://github.com/netuoso/ledger-app-hive/pull/5" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">fix: operations decoding
<p dir="auto">Meanwhile, I started reading the Ledger SDK documentation and getting familiar with the BOLOS system and Ledger requirements. I realized that it's impossible to get official support with the old code. It was bad, not covered with tests, outdated, and not capable of running on multiple models.
<p dir="auto">I decided to rewrite the app from scratch in a professional manner, making it ready to run with the newest SDK on all available models.
<h2>Writing hardware wallet application from scratch
<p dir="auto">That was the most challenging part of the entire process. As stated on ledger.com:
<blockquote>
<p dir="auto">Developing applications for Ledger devices is an intricate process. The security of the user funds relies on the fact that the application works in a correct and secure manner and that potential attackers cannot misuse it to extract private data and/or sign requests which are not authorized by the user. The app should guard against such attacks because they have a very low entry point – a Ledger device attached to a compromised host might be a victim of the attacker’s program sending invalid/non-standard requests to the device.
<p dir="auto">Moreover, hardware wallets do have some specific limitations like slow CPU, limited RAM, small display, only two buttons to interact, etc. Additionally, Ledger hardware wallet applications are executed in a custom-made BOLOS operating system.
<p dir="auto">All of those required spending countless hours on learning, coding, and testing. But in the end, everything went well and the app passed all reviews (including the security audit) performed by Ledger.
<h2>High coverage of automated tests
<p dir="auto">I put a lot of effort into unit testing the app (which is not only required by Ledger company but also very useful in the matter of stability and security). I covered most of my files with unit tests written in ANSI C, using the <code>cmocka framework. This will minimize potential problems, like buffer overflows/underflows, etc which are common on apps written in C.
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/voOcrji.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/voOcrji.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/voOcrji.png 2x" />
<p dir="auto">Functional tests are equally important. I've created a test suite to automatically perform signing tests for all available operations and use cases, including the incorrect ones (to make sure your accounts are secure).
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/AjddP9j.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/AjddP9j.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/AjddP9j.png 2x" />
<h2>Typescript library to communicate with Ledger application
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/T919rW4.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/T919rW4.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/T919rW4.png 2x" />
<p dir="auto"><span>It was crucial to make it possible for me and other developers to easily communicate with the Hive application running on a hardware wallet. This library is being used by hiveledger.io, hive-ledger-cli, and will be utilized by <a href="/@stoodkev">@stoodkev shortly to add the support of Ledger wallets in the most popular Hive browser extension called Hive Keychain.
<p dir="auto">The library is written in TypeScript and open-sourced, covered with tests as well.
<ul>
<li><a href="https://www.npmjs.com/package/@engrave/ledger-app-hive" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">@engrave/ledger-app-hive
<h2>CLI tool for Ledger team to make the initial Functional Review
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/LhqYenm.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/LhqYenm.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/LhqYenm.png 2x" />
<p dir="auto">This tool was used by the Ledger team to perform the initial Functional Review. It was not clear to the Ledger if the application is designed in a way that will be easy enough to be used by an average crypto user.
<p dir="auto">For this purpose, I've created a CLI application (Command Line Interface) that utilizes the previously created TypeScript library to perform basic operations on the Hive account, including the onboarding and deboarding from the Ledger device.
<p dir="auto">Thanks to this tool, Ledger was capable of performing a Functional Review and preliminarily accepted the application.
<ul>
<li><a href="https://peakd.com/hive-139531/@engrave/hive-ledger-application-has-passed-the-functional-review" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Hive Ledger application has passed the functional review!
<h2>Design and development of new Hive Ledger Online Wallet (hiveledger.io)
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/XOLFkgr.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/XOLFkgr.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/XOLFkgr.png 2x" />
<p dir="auto">I wanted to create a professional wallet for Hive. The wallet that could stand as an example of how good software we can do on Hive. Moreover, the flow to onboard Hive accounts with a hardware wallet is complex and it couldn't fit into any existing wallet easily. I wanted Hive Ledger to be easy for an average user.
<p dir="auto">I started my work with UX research and UI mockups to make sure we can cover all the common use cases for Hive users. I created multiple designs with multiple iterations and performed user tests on those to get some feedback.
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/UqpOdoU.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/UqpOdoU.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/UqpOdoU.png 2x" />
<p dir="auto">Those mockups were used later on by hired graphic designer to create final designs. I believe we should care about the appearance of our software and I wanted Hive Ledger Wallet to be great. It required close cooperation between me and the designer to consider every aspect of Hive blockchain specifics. Final designs prepared by the graphic designer:
<p dir="auto"><img src="https://images.hive.blog/768x0/https://i.imgur.com/MLLkcn3.png" srcset="https://images.hive.blog/768x0/https://i.imgur.com/MLLkcn3.png 1x, https://images.hive.blog/1536x0/https://i.imgur.com/MLLkcn3.png 2x" />
<p dir="auto">Hive Ledger Online Wallet was coded by a professional front-end developer. The source code is open source and unit-tested when possible. This makes it a great addition to the Hive ecosystem.
<p dir="auto">The final product is already being used by multiple users and it is the official wallet for Hive and Ledger integration, linked on ledger.com
<p dir="auto">I'm also currently working on further improvements to make it even better.
<h2>Documentation and support for Ledger Team
<p dir="auto">The excessive documentation was required by the Ledger team for both developers and end users. I wrote multiple articles that are now used as official support materials for Ledger users.
<ul>
<li><a href="https://blog.hiveledger.io/how-to-use-your-ledger-device-with-hive-ledger-cli" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">How to use your ledger device with hive-ledger-cli
<li><a href="https://blog.hiveledger.io/how-to-use-hive-ledger-wallet" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">How to use Hive Ledger Wallet
<li><a href="https://gitlab.com/engrave/ledger/app-hive/-/blob/master/doc/APDU.md" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Application Protocol Data Unit (APDU) documentation
<li><a href="https://gitlab.com/engrave/ledger/app-hive/-/blob/master/doc/COMMANDS.md" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Hive application commands documentation
<p dir="auto">I also performed multiple discussions with the security team to explain Hive blockchain specifics and design decisions.
<h2>Other improvements
<p dir="auto">While Ledger Team was performing a Security Audit of the submitted source code, I continued working on further improvements and this is how Blind Signing was introduced.
<p dir="auto">More info about Blind Signing can be found here:
<ul>
<li><a href="https://peakd.com/hive-139531/@engrave/new-hive-ledger-application-feature-hash-signing-blind-signing" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">New Hive Ledger application feature - hash signing (blind signing)
<h1>What next?
<p dir="auto"><span>I'm going to continue my work on hiveledger.io making it even better. I'm going to cooperate with other developers, for example, <a href="/@stoodkev">@stoodkev to make it possible to use Ledger devices with Hive Keychain extension to make the experience flawless.
<h1>Vote for the proposal!
<p dir="auto">Use your favorite frontend to vote for #242 proposal:
<p dir="auto"><br /><br /><span>PeakD: <a href="https://peakd.com/me/proposals/242" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://peakd.com/me/proposals/242<span>
Ecency: <a href="https://ecency.com/proposals/242" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://ecency.com/proposals/242<span>
Hive.blog: <a href="https://wallet.hive.blog/proposals" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://wallet.hive.blog/proposals
<p dir="auto"><strong>You can also use your Ledger device on <a href="https://hiveledger.io" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">hiveledger.io to vote for the proposal!
~~~ embed:1591841416841498624 twitter metadata:OTQ5Nzk5ODYxMzIyNDY5Mzc3fHxodHRwczovL3R3aXR0ZXIuY29tLzk0OTc5OTg2MTMyMjQ2OTM3Ny9zdGF0dXMvMTU5MTg0MTQxNjg0MTQ5ODYyNHw= ~~~
~~~ embed:1591899169090048000 twitter metadata:MTIzNTUwMTI2fHxodHRwczovL3R3aXR0ZXIuY29tLzEyMzU1MDEyNi9zdGF0dXMvMTU5MTg5OTE2OTA5MDA0ODAwMHw= ~~~
~~~ embed:1592598711422668800 twitter metadata:NzQ1NzY3Njc5fHxodHRwczovL3R3aXR0ZXIuY29tLzc0NTc2NzY3OS9zdGF0dXMvMTU5MjU5ODcxMTQyMjY2ODgwMHw= ~~~
~~~ embed:1592885826828263428 twitter metadata:MTE2MTY5NDc5MjYwNDE2NDA5N3x8aHR0cHM6Ly90d2l0dGVyLmNvbS8xMTYxNjk0NzkyNjA0MTY0MDk3L3N0YXR1cy8xNTkyODg1ODI2ODI4MjYzNDI4fA== ~~~
The rewards earned on this comment will go directly to the people( @rubencress, @enjar, @maurojd, @hiro-hive, @urun, @steemadi, @yeckingo1, @empoderat ) sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.
This team have made an excellent work with the integration. Many of us and mainly me, are happy with the improvements made so far. And I know they will continue offering functions and support. And talking about support, Engrave have the best support EVER. Just join their discord and you will be attended like you deserve. congrats Engrave
Thank you for your kind words
Supported and hope you get the reimbursement funding. Thanks for doing the heavy lifting for all of us on Hive so that we can have a hardware wallet to keep things safe.
Thanks, I believe it's valuable for all of us.
First to vote! Nice job, I will take a look when I get the chance
Thanks a lot for trusting me :)
Great job you have done, it was necessary to implement ledger and thus increase security in HIVE. Supported!!
Nice job bringing this to fruition. It was hard work laying the framework that you built upon, but I will be the first to admit you did a great job and would love to see you get this supported.
I got my Ledger last year, didn't write down my password so had to reset everything which took me ages. Then guess what? I still forgot to write down my password😄. I'm gonna reset my Ledger again and once I do that, I will make sure I write down my password this time and shift my Hive over. That will make sure I won't lose it!!! Thanks for doing this for Hive, it is much appreciated. Have voted for the proposal of course!!
One of those instant vote proposals and also love how you ask for funding after the fact, appreciate all you've done!
Thanks! I believe the motivation is different if you invest your time and money up-front, so... that's the best way to develop!
Learn more at https://hive.pizza!
@engrave! The Hive.Pizza team manually upvoted your post.I think the work you have done and are doing is and will be very useful for Hive. Proposal supported!
@tipu curate
Thank you, I really appreciate that!
Easiest vote ever,especially withwhats happening now in the crypto world! Thanks for all the work @engrave
Yeah, good timing :D Keep your Hive assets safe with Ledger!
I'm going to vote for the proposal right away now, but would like to get a concrete statement what's the minimum period. Just to make things clear.
Thanks, I will edit the proposal to make it clear!
Voted for the proposal with my proxy. I hope you get the support deserved asap.
Thank you, appreciate you vote!
Awesome job.
#242 upvoted and rehived.
Thanks!
Bravo!
Thanks!
I have strong faith that you will definitely get reimbursement for the proposal @engrave so that your project won't be in vein.
Nobody puts effort like You have done and he won't reap it impossible you will surely get your reimbursement proposal funding HIVE Blockchain Is broad there are capable people in the Blockchain who can make up for 90,000 HBD.
There are other great developers as well, it's worth voting on witnesses that bring value to the network :)
You are right.
Vote. A Must.
Thanks!
No-brainer vote. Thank you for making this happen!
No problem, I really wanted it, thank for the support!
Absolutely top notch work, supported.... and I really need to get myself one of these Ledger things.
I feel much better with my owner keys stored on Ledger, I can recommend :)
Nice
!PGM
!LUV
!LOL
BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!
The tokens that the command sends are: 0.1 PGM-0.1 LVL-0.1 THGAMING-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]
5000 PGM IN STAKE = 2x rewards!
Discord
Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP
Get potential votes from @ pgm-curator by paying in PGM, here is a guide
I'm a bot, if you want a hand ask @ zottone444
(1/1) sent you LUV. wallet | market | tools | discord | community | <>< daily
HiveWiki
HiveBuzz.me NFT for Peace
Congratulations @engrave! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badges:
<table><tr><td><img src="https://images.hive.blog/60x60/http://hivebuzz.me/badges/toppayoutday.png" /><td>Post with the highest payout of the day. <tr><td><img src="https://images.hive.blog/60x60/http://hivebuzz.me/badges/toppayoutweek.png" /><td>Post with the highest payout of the week. <p dir="auto"><sub><em>You can view your badges on <a href="https://hivebuzz.me/@engrave" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">your board and compare yourself to others in the <a href="https://hivebuzz.me/ranking" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Ranking<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP👍
Supported ... this is right on time because the whole crypto world has just gotten its wakeup call about leaving assets on exchanges instead of in wallets.
My Ledger is still refusing to recognize Hive as an asset, though ... do we need to upgrade our Ledgers in any way to get Hive on there?
What do you mean by that?
I mean, I keep trying to find Hive in the list of wallets to add to my Ledger, but, it doesn't come up ... I wonder if I might be behind on an upgrade to Ledger Live and that might be the problem.
Yes, you need to have the latest Ledger Live.
OK... thanks! Looking forward to using this!
Nice Proposal!
I'm very happy for you to see this funded as I always thought that HIVE desperately need this (of course it's a instant YES from my side). You truly marked a precedent about how successful proposals should be managed. Congratulations on that, and hats off, seriously.
Talking about myself alone, I invested more in Hive because I had the possibility of safely storing with ledger. Otherwise impossible.
Thank you once again engrave!
Now to the next point... Wen keychain integration?
Thank you so much! DHF is awesome and I believe we can make great things using it and I really wanted to show it's possible :)
I'm glad to hear that, really! I also feel much better with my keys stored on Ledger.
In progress :)
Congratulations @engrave! You received a personal badge!
Wait until the end of Power Up Day to find out the size of your Power-Bee.
May the Hive Power be with you!
You can view your badges on your board and compare yourself to others in the Ranking
Check out the last post from @hivebuzz:
Congratulations @engrave! You received a personal badge!
See you at the next Power Up day to see if you will repeat this feat.
May the Hive Power be with you!
You can view your badges on your board and compare yourself to others in the Ranking
Check out the last post from @hivebuzz:
good good GOOD stuff! :D 😁 @teonius