haxechain

Haxe blockchain trivial implementation
https://github.com/CurlyBraceTT/haxechain

To install, run:

haxelib install haxechain 0.1.2 

See using Haxelib in Haxelib documentation for more information.

README.md

haxechain - naivechain haxe port

Haxe port of the https://github.com/lhartikk/naivechain

Installation

haxelib install haxechain

Quick start

Navigate to the installation directory (You can get it by haxelib path haxechain command). Than run run [url] [port] command, that will compile and launch node, for example run localhost 5000.

Node commands: mine [something] - for example mine First Mined! connect [url] [port] - for example connect localhost 5001 * exit

Example in code usage

import haxechain.NodeRunner;

class Main {
    static function main() {
        var address = { url : "localhost", port: 5000 };
        var arguments = Sys.args();

        if(arguments.length > 0) {
            address.url = arguments[0];
        }
        if(arguments.length > 1) {
            address.port = Std.parseInt(arguments[1]);
        }

        trace('Start node at $address');
        NodeRunner.run(address);
    }
}
Contributors
CurlyBraceTT
Version
0.1.2
Published
8 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub