Show the crate…

1 unstable release

Uses old Rust 2015

0.1.2 Jun 23, 2018
0.1.1 Jun 23, 2018
0.1.0 Jun 23, 2018

#48 in #playground

MIT license

4MB
984 lines

Contains (WOFF font, 91KB) fontawesome-webfont.woff, (WOFF font, 72KB) fontawesome-webfont.woff2

Introduce

SUMMARY

Radiancy is a toy blockchain what I regard as a blockchain playground. Five built-in commands can help us taste the taste of blockchain honey. It's actually about... proof of work, database, crypto transaction and wallet —— A relatively completely transaction system but lack of coinbase handlings, consensus and network.

In order to ensure every command runs correctlly, Radiancy will generate a database and a wallet in current path whatever you have inputted 😂

Anyway, Radiancy is simple and easy to use... And I wish all of Radiancy users get a pretty good experience with Radiancy.

That is... Welcome to the blockchain world, and Long Live Rock n Roll.

INSTALLATION

  • Cargo
cargo install radiancy 
  • Shell
~ curl https://udtrokia.github.io/homebrew-udtrokia/scripts/radiancy.sh | sh 
~ radiancy help
  • Build from source code
~ git clone git@github.com:udtrokia/Radiancy.git
~ cd /path/to/radiancy/ && cargo build

USAGE

 ℷ  radiancy

<-- Hello Yellow Brick Road -->

Usage: radiancy COMMAND;

COMMANDS:
    create_account            Generate an default address;
    create_blockchain         Generate a blockchain;
    get_balance               Get address balance;
    print_chain               Print blocks in Radiancy;
    print_address             Print a test address;
    send                      Send coin to another address;

<-- GoodBye Yellow Brick Road -->

COMMAND

create_account

Generate an account file in the current path.

Example

radiancy create_account

And then, you will find a file named account.rdc in the current path.

create_blockchain

Generate a blockchain with db and default wallet.

Example

radiancy create_blockchain

Actually, in the current version, this command is useless: create both db and wallet in the current path.

get_balance

Get the balance of current account or the following.

Example

  • current account
radiancy get_balance
  • address as a parameter
radiancy get_balance address

print_chain

Print blocks in Radiancy. Actually a iterator to print every block stored in db.

Example

radiancy print_chain

print_address

Print a test address. I set the command to test transaction... lol~

Example

radiancy print_address

send

Transaction part. send RDC from current address to another.

Example

radiancy send <address> <amount>

License

MIT

Contribute

udtrokia.

Dependencies

~4.5MB
~89K SLoC