Bitcoin Forum
March 13, 2026, 07:13:15 AM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [CPU] fairchain - An akshually fair blockchain audited and created with AI.  (Read 148 times)
Bambalam (OP)
Member
**
Online Online

Activity: 168
Merit: 10


View Profile
March 11, 2026, 07:51:43 AM
Last edit: Today at 06:17:41 AM by Bambalam
 #1

Fairchain Testnet Live - Bounties Activated!

GITHUB: https://github.com/bams-repo/fairchain

For all of you both new and invested in this chain - the network as far as I can tell is 100% Deterministic and Consensus cannot be broken. I dare you to break it. Get those AI Agents up and running, clone the repo, modify the code, build your own miners, etc - If you can break consensus on the seednodes - You will win a substantial bounty on mainnet when we launch. Ensure you report directly to this thread exactly what broke consensus and how I can reproduce it.

Download the release on github, run it with ./fairchain-node --network testnet --mine
You can omit the --mine if you just want to see output.

This is a completely custom GO based blockchain - read the following posts to discover more.

https://discord.gg/zzwEK6Cy9G <<- Join for more discussion and to follow along.

▬ ▬ ▬ ▬ ▬ ▬Mysterium Network▬ ▬ ▬ ▬ ▬ ▬
Decentralized   VPN   powered   by   Blockchain
JOIN THE ICO ▬▬▬ JOIN THE DISCUSSION
Bambalam (OP)
Member
**
Online Online

Activity: 168
Merit: 10


View Profile
March 11, 2026, 08:24:12 AM
Last edit: Today at 06:02:52 AM by Bambalam
 #2

Its no secret that nearly every facet of the tech industry has adopted the use of AI and some form or another, most of all developers have come to almost universally rely on it daily. Its fast, its cheap and its damn good - IF prompted correctly. I have been using AI to code since its infancy and have both launched and supported a large number of projects through the use of AI. I would not consider myself perfect by any means, I'm human. I think the success of this project will depend heavily on the community for both audits and testing. Satoshi's original vision was a blockchain that was fair. He envisioned an ecosystem where everyone could participate with nearly equal rights to reward. I believe this is the foundation that every member of this network loves most about cryptocurrency.  I believe also that the biggest problem that has yet to be solved meaningfully is - how do we make it fair. There are very clear tradeoffs for every solution and no solution will ever be perfect. The biggest problem with innovation is the resource (TIME). This project will rely heavily on AI to speed up the development of the blockchain and help accelerate every aspect of the code base and infrastructure.

While I plan to rely heavily on AI while developing this I will do my very best to keep all community interaction and forward facing documentation human-based. My hope is that in doing so it will prove that I have a complete and total understanding of the code base while providing resources that are easy to digest and not predictive word-soup.

Currently the tokenomics dont matter, so I wont disclose those - any reference to tokenomics in the codebase dont matter and are subject to change as we get closer to a working prototype.

Code work will be done via regtest network and local isolated testnets and then changes will be gated behind height activation to ensure consensus once a real testnet has developed.

Akshually Fair Model
The Fair Model (Concept Overview)

The entire goal of this project is to answer a question that has existed since the beginning of cryptocurrency:

How do we make mining fair without sacrificing decentralization?

Traditional Proof-of-Work systems reward raw throughput. The more hashes you can compute per second, the more likely you are to win a block. This has led to an arms race of ASICs, massive GPU farms, cheap power arbitrage, and ultimately mining centralization. There is nothing inherently wrong with that model. It has proven secure. But it also means that the probability of success is directly proportional to hardware scale. The bigger the farm, the bigger the advantage. The model being explored in this project attempts to change that dynamic. Instead of rewarding unlimited hashing throughput, the protocol limits the number of useful attempts each participant can make within a given window. This means the network does not try to detect who is hashing faster. Instead, it simply makes additional hashing beyond a certain point useless. This changes the incentive structure dramatically and hopefully gets us closer to a fair network.

Mining Identities

Each miner registers a cryptographic mining identity.

This is simply a public key that becomes eligible to participate in mining after a short activation delay. The purpose of this delay is to prevent rapid identity rotation.

These identities are not meant to represent real-world identity. They simply give the network a deterministic participant structure.

Epochs and Tickets

Time on the network is divided into epochs.

At the start of each epoch the chain generates a deterministic random seed derived from recent blocks.

Using this seed, each mining identity receives a small number of tickets.

These tickets represent the miner's opportunity to attempt block production during that epoch.

For example:

• Each identity may receive 3–5 tickets per epoch
• Each ticket allows exactly one mining attempt
• Once a ticket is used, it cannot be reused

The number of tickets is fixed by protocol rules.

This is where the fairness begins.

No matter how much hardware someone owns, a single identity only receives a limited number of chances to compete.

Sequential Work

When a ticket becomes active, the miner must perform a sequential computation challenge.

This challenge is intentionally designed so that:

• Each step depends on the previous step
• The computation cannot be parallelized efficiently
• Memory access patterns are randomized
• Verification is much cheaper than generation

Because the computation is sequential, throwing massive parallel hardware at the problem provides limited advantage.

In traditional mining, running 100 GPUs means 100x more attempts.

In this model, the same identity still only gets the same number of tickets.

Extra hardware simply finishes the same job slightly faster.

Winning a Block

After completing the sequential challenge, the miner produces a score.

If the score falls below the current difficulty target, the miner can produce a block.

Difficulty still adjusts exactly like a normal blockchain:

• If blocks are produced too quickly, difficulty increases
• If blocks slow down, difficulty decreases

The only difference is that attempts are limited by tickets rather than raw hash rate.

Why This Matters

In a traditional PoW system:

Code:
probability_of_winning = hashrate

In the fair model:

Code:
probability_of_winning = number_of_identities × tickets_per_epoch

This dramatically reduces the advantage of large-scale mining farms. A single identity cannot gain unlimited advantage simply by adding more hardware. To scale influence, a participant must operate more identities, which introduces costs such as collateral, activation delays, and operational complexity.

Difficulty and Block Times

Block times and difficulty retargeting still function exactly like a traditional blockchain.

The protocol simply adjusts the probability that a ticket will produce a valid block.

This keeps block intervals stable while still limiting useful mining attempts.

There are many unknowns and this system needs to answer questions like:

 How resistant is it to Sybil attacks, what are the real hardware advantages, how do pools behave under this model, what is the optimal sequential workload design, how does identity registration affect participation? These questions can only be answered through experimentation. I will do as much experimentation while working with the code as possible to produce deterministic results while maintaining the core ideas outlined in this thread. This thread will serve as a sort of eternal notepad and idea-board for the network up until launch. The goal is to build something real, test it openly, break it repeatedly, and improve it with community input.

Fairness in decentralized systems is extremely difficult.Every design introduces tradeoffs between security, decentralization, accessibility, and economic incentives. I am not claiming this project will completely solve the problem, but I'm hoping through experimentation and the advancements of AI we can get much closer then we currently are.

If it works, it could allow ordinary devices - including ARM systems - to remain competitive participants in securing the network. Desktops, laptops, phones could all have meaningful roles in block production and economy distribution.

And if it fails, we will at least learn something meaningful along the way and perhaps lay out the groundwork for a new network to learn from our mistakes and perhaps improve on them.

▬ ▬ ▬ ▬ ▬ ▬Mysterium Network▬ ▬ ▬ ▬ ▬ ▬
Decentralized   VPN   powered   by   Blockchain
JOIN THE ICO ▬▬▬ JOIN THE DISCUSSION
Bambalam (OP)
Member
**
Online Online

Activity: 168
Merit: 10


View Profile
March 11, 2026, 08:53:35 AM
 #3

The repo has been published on github and is MIT licensed open-source.

You can find it here: https://github.com/bams-repo/fairchain

QUICK START:
There is no network currently - you can create a local network and run the chaos tests to see the PoC code in action.

Ensure dependencies are installed:
sudo apt install -y git
sudo snap install go --classic
sudo apt install -y curl
sudo apt install -y jq

git clone https://github.com/bams-repo/fairchain
cd fairchain/
make test
make build
chmod +x scripts/chaos_test.sh
./scripts/chaos_test.sh


▬ ▬ ▬ ▬ ▬ ▬Mysterium Network▬ ▬ ▬ ▬ ▬ ▬
Decentralized   VPN   powered   by   Blockchain
JOIN THE ICO ▬▬▬ JOIN THE DISCUSSION
Bambalam (OP)
Member
**
Online Online

Activity: 168
Merit: 10


View Profile
March 11, 2026, 09:29:25 PM
 #4

Those who are following along have likely read the TODO section (it serves as a short-term roadmap.). Phase 4 is hardening and testing, and while that has been completed and the basic blockchain functions I wanted to audit it from a serious standpoint- after all we are completing a phase called "Hardening". I wanted to focus not just on one aspect but all aspects and ensure difficulty re-targeting and validation, chain reorganization, chain-state corruption, etc were solid before moving on. I am glad it was done, some issues found included Missing dificulty validation whereby a miner could fuzz the header.Bits and submit blocks with lower difficulty forcing the network to re-target lower. This was a large bug found and there were several smaller bugs found and flushed out.

This is a view of the chaos test script starting up.


It will run through a series of different tests to ensure that under real network load consensus stays in-tact.





As you can see from the most recent chaos testing - two of the steps failed but I think that is because [PASS] wasnt present- It likely failed from a warning in a previous test. Non necessicarily a failure but I am investigating.

Next steps will be:
UTXO and Transaction validation!


▬ ▬ ▬ ▬ ▬ ▬Mysterium Network▬ ▬ ▬ ▬ ▬ ▬
Decentralized   VPN   powered   by   Blockchain
JOIN THE ICO ▬▬▬ JOIN THE DISCUSSION
Bambalam (OP)
Member
**
Online Online

Activity: 168
Merit: 10


View Profile
March 12, 2026, 07:36:37 PM
Last edit: Today at 12:33:39 AM by Welsh
 #5



Day two SUCCESS!

It takes around 10 minutes to run the full chaos suite. Today it was ran probably 25 times or so and discovered a large number of issues that were resolved. I have pushed the changes to github and results should be reproducible. The only issue remaining prior to a version bump is the peer discovery and persistent peer database, I am not currently sure if the peers are persisting because they are not iterating the timeout logic and perhaps the test does not run long enough for peers to be removed from the database. I also have yet to implement the peer scoring that bitcoin-core utilizes but that's for something much further down the road. I am also considering a pre-mine for community oriented bounty programs to get the community involved in the development.

if anyone would like to clone the source and run the chaos test to try and produce failures - You would be considered for future bounties. Not every run will produce a failure but many runs can eventually produce an edge-case failure.

Looking forward to tomorrow.


I'm getting closer to a working blockchain. Current chaos testing shows attack vectors or all fixed however some chain forks are not causing re-orgs or re-orgs are not being completed correctly leading to an unstable chain state accross peers. I have been working on it all day and I think i am close to resolving the issues.

Once I have resolved these issues, 0.1.0 will be done. Then the fun begins as we start implementing our custom fair logic.



Previous testing passed these, while modifying and aligning with bitcoin-core I introduced some new conditions where attacks could succeed.



I found this interesting and this is why there will continue to be audits and testing after every codebase modification.


The goal of this project is to create something new and attempt being fair but the core components need to be interchangeable with existing infrastructure. If an exchange is ever going to list fairchain its RPC interface, data storage models, etc all need to align with bitcoin core.

With this in mind, I am working on converting the initial simple data storage over to a bitcoin-core style data directory.

Is anyone interested in maintaining a seednode when the network launches?

▬ ▬ ▬ ▬ ▬ ▬Mysterium Network▬ ▬ ▬ ▬ ▬ ▬
Decentralized   VPN   powered   by   Blockchain
JOIN THE ICO ▬▬▬ JOIN THE DISCUSSION
Bambalam (OP)
Member
**
Online Online

Activity: 168
Merit: 10


View Profile
Today at 06:09:13 AM
 #6

Fairchain Testnet Live - Bounties Activated!

GITHUB: https://github.com/bams-repo/fairchain

For all of you both new and invested in this chain - the network as far as I can tell is 100% Deterministic and Consensus cannot be broken. I dare you to break it. Get those AI Agents up and running, clone the repo, modify the code, build your own miners, etc - If you can break consensus on the seednodes - You will win a substantial bounty on mainnet when we launch. Ensure you report directly to this thread exactly what broke consensus and how I can reproduce it.

Download the release on github, run it with ./fairchain-node --network testnet --mine
You can omit the --mine if you just want to see output.

This is a completely custom GO based blockchain - read the following posts to discover more.

▬ ▬ ▬ ▬ ▬ ▬Mysterium Network▬ ▬ ▬ ▬ ▬ ▬
Decentralized   VPN   powered   by   Blockchain
JOIN THE ICO ▬▬▬ JOIN THE DISCUSSION
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!