Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monokh/nibble
Simple bitcoin-like blockchain implementation written in rust
https://github.com/monokh/nibble
Last synced: 23 days ago
JSON representation
Simple bitcoin-like blockchain implementation written in rust
- Host: GitHub
- URL: https://github.com/monokh/nibble
- Owner: monokh
- Created: 2020-06-27T13:44:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T22:42:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-03T12:33:39.526Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 1.5 MB
- Stars: 39
- Watchers: 4
- Forks: 10
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nibble :cookie:
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](https://github.com/monokh/nibble/blob/master/demo.gif?raw=true)
## 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 informationOPTIONS:
-r, --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
```