Skip to content

coldstar1993/tiny-btc-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplified btc in rust

a POW+UTXO blockchain demo, just for learning

  • align with btc's address derivation & signature algorithms
  • only support P2PKH now

concurrency by multi-threading, while node communication by TCP protocol

steps

  • Create wallet:
    cargo run createwallet
  • Create blockchain(address will get reward from coinbase tx of genesis block):
    cargo run create <address>
    
  • send coins (if -m is specified, the block will be mined immediately in the same node):
    cargo run send <from> <to> <amount> -m 
    

About

a POW+UTXO blockchain demo, just for learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages