Skip to content

Instantly share code, notes, and snippets.

@anthonyadavisii
Last active January 18, 2021 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonyadavisii/346085441010a577d783098179a10888 to your computer and use it in GitHub Desktop.
Save anthonyadavisii/346085441010a577d783098179a10888 to your computer and use it in GitHub Desktop.
Beem FTWin: How to Install Beem Python for the Hive Blockchain on Windows 10
https://images.ecency.com/DQmdbSMUugVGzhCnW5n6eZG14DBfBigowi1ow2BWfWvQvno/image.png
### Beem FTWin
    Having been interfacing with the Hive blockchain using Beem for years using Linux virtual machines and servers, I decided to work out installation on my Windows 10 laptop for convenience and ease of use. Decided to produce this guide which I hope will help others on their way.
    From the beginning of Steem from which Hive was forked, there had been much contention about Windows users being left in the dust during the PoW (Proof-of-Work) period sometimes not endearingly referred to as the ninja mining period. The Scrypt miner that was made available was not released for the Windows OS which, in effect, created a technical hurdle for those users to acquire stake via PoW mining. The reason I bring this up is the implications one may infer against adoption. Not to suggest that Linux is niche but it is certainly not mainstream.
    This is why I appreciate the approach that projects like @koinos that have created a platform independent GUI miner albeit lacking some flexibility presenting via the CLI on Linux e.g. proof frequency. This approach allows more people who may not necessarily be tech savvy to get on the group floor of the project in contrast to Steem which to target the opportunity in a manner that is more esoteric in nature. The overarching point I am trying to make here is, to achieve the end goal of mass adoption, tools and utilities that would confer advantages to users should be available should not be platform exclusive. That reasoning is precisely why I think it should be helpful that I produce this guide for Beem, being the robust library with many potential advantages, to be leveraged from the Windows operating system.
### Prerequisites
- Windows 10 Operating System (Pursuant to future testing, this guide may be able to be employed on prior releases)
- [Visual Studio Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16#)(Select options per screensnip)
![image.png](https://images.ecency.com/DQmUorFbP1bNGiQMuyEqo6Rk3RiqHJ6Bx6N3YzrV2RBggZk/image.png)
- [Python 3.9.1](https://www.python.org/ftp/python/3.9.1/python-3.9.1-amd64.exe)
- [Win32/Win64 OpenSSL by Shining Light Productions](https://slproweb.com/download/Win64OpenSSL-1_1_1i.exe)
### Steps
1. Install Prerequisites
2. Add "%LOCALAPPDATA%\Programs\Python\Python39\Scripts" to local machine PATH environmental variable
3. Copy C:\Program Files\OpenSSL-Win64 directory including contents to C:\
4. Open an elevated command prompt.
5. Use pip to install cryptography module
``
py -m pip install cryptography
``
\6. Use pip to install beem
``
py -m pip install beem
``
![image.png](https://images.ecency.com/DQmQfphqT6Wiw2x2F3zBYeeKogf21Eq4ji1KXv8S8Kgwiti/image.png)
### That's it! You should now be able to use the beempy CLI module and import beem into your python scripts.
You may now create your BIP38 wallet to store your passphrase protected private keys.
![image.png](https://images.ecency.com/DQmYGY2nhFUhceEWr1fsKEHpcJEmsKircPAz4ApEpacAMrW/image.png)
    Now, let's try importing an account. I'll use my main account. (If more granular control is desired i.e. only posting key, recommend using the beempy addkey command instead)
![image.png](https://images.ecency.com/DQmWFgi5Ro6jjbnP4tmq2zypKpW4PTM9CQkwwDtAUSMssju/image.png)
Now, let's give upvoting a spin using WIF.
![image.png](https://images.ecency.com/DQmRoYfsbHkxnS6ZZq83J8wWCB8cKyD8gfhhtRUgfAVjsXe/image.png)
Now again but using BIP38 wallet.
![image.png](https://images.ecency.com/DQmf1KACJ9EzGoAcNt6wmk38dz4XMihhNanV2wFPEvkymVo/image.png)
**Success!**
---
    So, there it is, folks! Successful interaction with Hive via Beem on Windows without the need of any complex virtual machine or containerized setup. Now you may choose to use my Beem FTWin guide if you should so choose whether it is a matter of convenience or something else entirely. The power is now in your hands. Thanks for reading and appreciate your supporting this work. Also, kudos to @holger80 for providing us such a sophisticated Python library.
### Go forth and BUIDL great things!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment