How to Use BUMO: Account Creation

By: Jesse Abramowitz
Blockchain Developer

Scalability is a major issue that blockchain faces today. Although popular blockchains such as Ethereum are making great strides towards solving scalability issues, to date there is no right way to solve scalability in blockchain.

BUMO seeks to solve this issue with a combination of sharding and consensus approaches. If you would like to learn more, Blockgeeks has a great article with in-depth explanations of their approach.

This article is the first part in a three-part series which will cover how to use and develop DApps using the BUMO platform.

In this article, we will show you how to create an account:

  1. Through their website
  2. Through supported wallets
  3. Through HTTP API request
  4. Through a local installation
  5. Through their javascript sdk

Part II will explore how to setup a local node & make a transaction, and Part III will teach you how to manipulate the transaction to create an asset class.

Through the Website

This is the easiest way of creating an account on BUMO.

  1. From BUMO’s Website, in the right hand upper menu, click on Wallet
  2. Click on Key Pair Generator, which takes you this screen:

3. Click “Generator”

You can take this key pair and access your account through a hosted wallet to interact with their blockchain here.

An interesting fact about BUMO: private keys in the BUMO ecosystem always start with pri and address always start with bu which helps with user readability.

Through Supported Wallets

This method allows you to create an account through an already supported wallet on Windows and iOS. Currently, there is no support for Ubuntu. Hopefully they’ll expand their support for these in the future.

To create a wallet using Windows or iOS:

  1. On the website, click on the Wallet tab
  2. Download the BUMO Full Node Wallet and Open it. You should see this:

3. Click Create Wallet

4. Create a Wallet Name and Password. You will be prompted to backup your wallet (which you should do as a best practice). Your keys are held locally so if you were to lose your device, you will not be able to recover your account without either a keystore or private key.

5. Click Login Wallet

6. Input the Wallet Name and Password

Voilà! You have successfully created a keypair!. By clicking the Wallet Name in the top right corner, you will be able to view your private key and account

It is important to note to use this wallet it requires you to sync up to the blockchain unlike the quick wallet.

Through HTTP API Request (Not Secure)

Let’s take a look at the code in the configuration file for the test net. You can see below that there is an API web server pushed out on port 26002:

This means we can call on the API when we are running a node locally. A node can also choose to host their path and allow other people to make API calls. BUMO has already done this for us which we will utilize here and when using the SDK.

  1. The Host is http://seed1.bumotest.io and the port is 26002.
  2. Make an API call. To do this, type: http://seed1.bumotest.io:26002/createKeyPair into the url bar.

If you would like to access other commands, check out BUMO’s documentation.

Note: Please DO NOT do this in Production. Only use this for TESTING as this is not a secure method.

Through the Local Installation

This is the point in this tutorial where things will get more technical, and requires us to use BUMO’s documentation.

Disclaimer: The following examples will only work on Linux based OS (iOS, Ubuntu, etc.). This is because I use a command called Sudo — superuser do which allows me to to run a command as a root administrator.

To overcome this on Windows:

  1. Right click on Command Panel and run as Administrator.
  2. When you run your Commands, erase Sudo from the command.

To install through a Local Installation:

  1. After setting up, go to the Terminal. At this point, you will be ready to call some function and create a keypair.
  2. CD into the folder that was created during installation

2. In the path ./bin/bumo, there are executable files. These files execute math functions which creates an account. You can find a great description of this math here. To call this function (which does the math and creates the account), we can run:

$ sudo ./bin/bumo --create-account

There are more executable files in this path. To see them, run:

$ sudo ./bin/bumo --help

Node-JS SDK

This is the last way to create an account using BUMO. To do this:

  1. Install Node.js. Instructions can be found here.
  2. Create an empty file
  3. CD into that file and run:
$npm install bumo-sdk --save

4. Type node and press Enter. You should now see a >
5. Import the proper library:

const BumoSDK = require('bumo-sdk');

This should return undefined.

6. Next, connect to an Endpoint. This is much easier than running our own node. In this case, BUMO has actually provided us with one. This should also return undefined.

const sdk = new BumoSDK({
host: 'seed1.bumotest.io:26002',
});

7. Now you can call all of the functions in their SDK documentation here. Although this is in simplified Chinese, it is very similar to web3 and the commands are in English.

To create an account, we need to call on the function in their SDK that performs certain math procedures which can be found in their documentation here. We will use the following command to do this:

sdk.account.create()

Which should look something like this:

And there you have it!

After this tutorial, you are now an expert at Account Creation using BUMO. Although at times this was a basic tutorial, a lot of these steps will be used to explain more complex concepts in the future.

Do you have any questions about BUMO and the BUMO ecosystem? Let us know in the comments or directly to BUMO through their GitHub, Twitter, Weibo, and Telegram.

BlockX Labs builds developer tools for blockchain ecosystems. We also focus on building solutions for private/public blockchains. More info @ www.blockxlabs.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store