monokh / nibble

Simple bitcoin-like blockchain implementation written in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nibble 🍪

Nibble is a re creation of Bitcoin as a concept. It is intended to create a simple view of Bitcoin with code. It will be built from simple data structures and processes, eventually becoming a network that anyone can run FAILED

Nibble demo

Run

cargo run --bin nibbled

RPC interface: http://localhost:1337

Explorer and Wallet UI: http://localhost:1339

Guide

Data Structures: https://monokh.com/posts/bitcoin-from-scratch-part-1

The Node: https://monokh.com/posts/bitcoin-from-scratch-part-2

The Network: https://monokh.com/posts/bitcoin-from-scratch-part-3

CLI

USAGE:
    nibble-cli [OPTIONS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -r, --rpc-url <RPC URL>    RPC Url to connect to [default: http://localhost:1337]

SUBCOMMANDS:
    balances       Returns balances for each pubkey known by the node
    blockheight    Get the current block height
    getbalance     Pubkey
    getblock       Block Number
    getpubkey      Get node's public key
    help           Prints this message or the help of the given subcommand(s)
    mempool        Returns the transactions in the mempool
    newpubkey      Generate a random pubkey
    send           Amount to send

About

Simple bitcoin-like blockchain implementation written in rust


Languages

Language:Rust 73.6%Language:Svelte 12.5%Language:JavaScript 10.9%Language:CSS 2.4%Language:HTML 0.7%