kostaleonard / leocoin

Leo's cryptocurrency
MIT License
4 stars 1 forks source link

LeoCoin

This app allows you to mine LeoCoin, the hottest new cryptocurrency.

How much is LeoCoin worth?

LeoCoin is worthless priceless.

Quickstart

Cryptocurrencies use cryptographic keys to provide secure transactions. First, generate a public/private key pair.

openssl genpkey -algorithm RSA -out private_key.pem
openssl rsa -pubout -in private_key.pem -out public_key.pem

We are going to pass these keys to our app container using environment variables. Environment variables cannot contain newline characters. However, the OpenSSL key format does contain newline characters. base64 encode the key contents to remove newlines and store the result in environment variables or files.

export LEOCOIN_PRIVATE_KEY=$(base64 -w 0 private_key.pem)
export LEOCOIN_PUBLIC_KEY=$(base64 -w 0 public_key.pem)

Now run the container with the following arguments.

docker run --init --rm --env LEOCOIN_PRIVATE_KEY=$LEOCOIN_PRIVATE_KEY --env LEOCOIN_PUBLIC_KEY=$LEOCOIN_PUBLIC_KEY kostaleonard/leocoin

LeoCoin mining