-
Notifications
You must be signed in to change notification settings - Fork 15
Bootstrapping
Bernardo Ramos edited this page Dec 21, 2020
·
3 revisions
Here are some examples of how to bootstrap an AergoLite blockchain network:
- Install AergoLite on a computer for managing the network
- Follow the instructions to install the Ledger app and to get the public key from the Ledger device
Then:
- Create your application
- Add the configuration (node discovery address, password, admin public key)
- Compile it
- Install it on the devices
On one of the devices with access to the Ledger App:
- Connect the Nano S and run:
pragma ledger=on
- To get the list of connected devices and their public keys, run:
pragma nodes
- Authorize the current node that you are using:
pragma add_node="Am..."
- Authorize the other nodes
In this case the blockchain administrator's private key is stored on an application or device (computer or tablet or phone)
- Select the device that will be used to manage the private blockchain
- Generate a random private key using a strong source of randomness, then get its public key
Then:
- Create your application
- Add the configuration (node discovery address, password, admin public key)
- Compile it
- Install it on the devices
On the device used to manage the blockchain:
- Use the block of code used to sign transactions from the admin. it must have access to the admin's private key
- To get the list of connected devices and their public keys, run:
pragma nodes
- Authorize the current node that you are using:
pragma add_node="Am..."
- Authorize the other nodes