Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

How I do learning a two interesting for me things - Rust lang and Blockchain!

Notifications You must be signed in to change notification settings

ZirionNeft/blockchain-rust-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Blockchain

Project currenly is WIP

P.S: It's just a learning project, some of decisions which are used in this may be is not enough better or evenly true - but I'll glad to hear your hints :)

Checklist

A some little list of my tasks which I want to bring to live, step by step

  • Base blockchain model
  • A possible to simple HTTP interaction
  • Proof-Of-Work validation
  • Blockchain storing
  • Transactions
  • Wallets
  • Transactions signing and verifying
  • UTXO set
  • Merkle Tree
  • Transcations memory pool
  • Nodes network
  • p2pkh

Usage

  1. cargo build
  2. cargo run
  3. Go to localhost:8080

API

Method Route Request Description
GET / Show blockchain history
POST / { "address": "wallet_address" } Create blockchain if it's not exists
GET /coins/{address} Show coins balance of address
POST /coins { "from": "sender_wallet", "to": "recipient_wallet", "amount": some_positive_number } Send coins to another wallet address
GET /wallet Show your local wallets
POST /wallet Generate new local wallet

About

How I do learning a two interesting for me things - Rust lang and Blockchain!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages