Official wallet for the cocol network.
It is still:
- work in progress
- not safe
- not tested
Cocol Wallet is written in Crystal, so make sure to follow the installation instructions first.
After setting up Crystal you can clone the repository and build it:
> git clone https://github.com/cocol-project/ccl-wallet.git
> cd ccl-wallet
> make
> ./bin/ccl-wallet help
ccl-wallet - [WIP] Cocol Wallet - manage addresses and account balance
Usage:
ccl-wallet [command] [arguments]
Commands:
address # Show your address
generate # Generate a new wallet
help [command] # Help about any command.
send # Transfer funds
Flags:
-h, --help # Help for this command. default: 'false'.
Let's create a wallet and transfer some funds:
> ./bin/ccl-wallet generate
New private key: 7e704ced1d4dc06bc2fff284d155a46886492ac158f0b4719ff7e7ca3f43a806
# show my address
> ./bin/ccl-wallet address
0x15C91b5CBE385dd8a94643Db2021A92E0D3b6F65
> ./bin/ccl-wallet send --amount 100 --recipient 0x5432FD4A91c46d3F8DAEd3cC79C8a85a77764c3a --node 127.0.0.1:3000
Success!
Note: You have to give yourself some $ccl in the genesis block (premine it)
otherwise the node won't accept your transfer as valid. Right now you have to do
it manually by changing the address in the genesis_transactions
method in the
cocol codebase
TODO: Write development instructions here
- Fork it (https://github.com/cocol-project/ccl-wallet/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Cristian Șerb - creator and maintainer