/redstone-cb

Redstone Codebase is implementation of redstone protocol

Primary LanguageRustMIT LicenseMIT

Redstone codebase

Implementation of Redstone protocol

This is the offical implemention of the redstone protocol. It is written in rust. Protocol is subject to frequent change and as such no documention exists (however it is in the works) It is currently not ready for usage.

Current Status

TESTED AND WORKING

  • 2 blockchain database
  • Mining on both chain
  • Making local tx
  • Making p2p tx
  • Sending p2p block req
  • Reciving p2p inv block req
  • Adding block
  • Finding new nodes

To do

  • Every block to include hedder egg chain 1 and prev hash from other chain if header is chain 1 look chain 2
  • Custom save 2 databses
  • Header Input
  • Node on both chains
  • FIX Adding blocks or test it
  • TEST AND MAYBE FIX: P2P NODE ADDING BLOCKS
  • Only synces nodes can make blocks, so if someone does not sync it cant send newest block that prev hash is behiend network
  • Mine func for 1st and 2nd chain
  • Wallet look both databases
  • When making new block node will in header put on what blockchain is going on prev hash from that blockchain + prev hash from other chain egg 2nd.
  • When validating chains open newest db from both chains and validate
  • In block stuct insert hedder and prev hash other
  • Added node saving to database by header egg if header 1 save to chain 1 database.
  • 2 chain validation (if necesery)
  • block reward (if necesery)
  • P2P: In every function add if chain 2 to use utxo1 insted of utxo 2 so add utxo handler
  • UTXO both chain
  • DNS SEEDS for p2p
  • Rework mining so it can work with new P2P
  • Simple p2p implemetation of blockchain
  • Signing with wallet and sending txt to the blockchain
  • Simple node
  • Balance = chain 1 addr balance + chain 2 addr balance
  • Block to include header and other hash (just added to block struct)
  • ADVANCE: Implement everything in one function this will hapen at end insted of usinf eg mine_block_chain2() use mine_block(arg: chain) this will hapen at end as now we are testing features and implementing it for testing.
  • ADVANCE: Adding encrypted p2p system (this will be added at the end)

Security Policy

Supported Versions

NOTE: There is currently NO supported version of redstone client

Version Supported
0.0.1

Reporting a Vulnerability

If you the vulnerability is already publicy known or not explotable then please open an issue. (eg you can crash local nodes using x) If it is a critical vulnerability that must be kept secrete 0r could negatively and severely impact the newtork (eg you can mint coins out of thin air using x) then please email redstonecrypto@gmail.com