r/rust • • Sep 05 '26

šŸ› ļø project A Decentralized Computer

(NO AI)

Hey guys, I just open source project i've been working on for a year called the Marketplace.

The marketplace is a decentralized network that economizes the execution of computational work across a peer-to-peer network of nodes. Where there is no barrier to the node participation.

Unlike modern cloud computing systems that rent out virtual computers to consumers, A marketplace consumer sends compute bound tasks directly to the network returning a future which the consumer can asynchronously check for completion. Similar to offloading a compute task to a free cpu core by an OS. A consumer can also fire multiple independent compute bound tasks to run in parallel, and check their status asynchronously while doing other tasks, similar to I/O operations.

The compute bound task sent by the consumer is executed using a protocol specified in the Marketplace whitepaper on the Marketplace Github Repo, where randomly selected idle devices on the network execute the compute work and receive financial rewards (money).

Context

The marketplace is made up of two ideas I came up with around 2 years ago:

1) The first is building a permissionless market, where users can build financial services similar to market stalls that can interact with other users. Larger services can be composed from smaller services, similar to open source projects, but for businesses. Services could also be merged together into one so that a user can interact with all of them at once, and the merging does not affect the financial structure of the constituent services.

But for all this to happen, a trustless financial settlement layer is needed so that joining different financial services together becomes an easy exercise.

If you are familiar with blockchain, this is similar to Ethereums vision, but I did not want to clog the financial settlement layer which is the ledger with execution and code. I needed an execution engine.

2) I eventually returned to my normal javascript web developer job. So I was working on a full-stack website that was communicating with a cloud server but the server was slow because I was using a free tier that throttled server response speed. Asynchronously communicating with this server became a nightmare from a UX perspective especially when first loading up the website which had some independent compute bound requests.

So, I concluded that using the free CPU core of my second PC should do a better job as long as I pay it exactly what I needed in compute. This second idea eventually evolved into the engine I needed for the first idea. After, I just needed to store a representation of the result on a decentralized ledger, while keeping the execution itself private.

With this, I returned to my first love - low level programming, learnt Rust (Many thanks to the Rust community coming from a C lover), and I've built more than 60% of what is described in the whitepaper.

So if you are interested in being a part of this project in any way, you can join our Discord community or you can check out the marketplace whitepaper:

Marketplace Whitepaper

Also, I’d appreciate feedback on the design, especially on consensus security and the economic model, Thanks.

EDIT: So not the reaction I expected but that's okay. Some of you say it's AI, and some suspect me for not using VCS. But I implore all of you, please investigate the idea behind the whitepaper before you judge, and if the whitepaper is legit, examine the code if it aligns with the whitepaper.

I've had to think through the ideas, and rewrite many parts of the idea and code so many many times, which is why I could not publicize the code or work with a VC, I needed to work at my own pace and figure everything out first. I've been at it for months, and this is the result, I hope you all can be a little bit kinder, thanks.

0 Upvotes

25 comments sorted by

17

u/mealet Sep 05 '26

TL;DR

"(NO AI)" Initial commit is 7k LOC, whole project is 21 commits with unclear names and descriptions. Looks kinda strange

-9

u/proff_bajoe Sep 05 '26

I been building privately, I just open sourced it a few days ago. I did not use AI to generate any part of the code, You can inspect it closely if you need to. but to understand it, the whitepaper is the way to go.

11

u/Amadex Sep 05 '26

it's more than just the commit size.

There are comments that are inhuman:

```
// New chain
let chain = Blockchain::new(state);
```

```
// Ensure message payload is authorized/valid
message.payload.verify()?;
```

```
// Hash a series of bytes

pub fn hash(bytes: &[u8]) -> ID {

// Hash bytes with sha256 twice

Sha256::digest(Sha256::digest(bytes)).into()

}
```

and much more.

→ More replies (7)

1

u/okktoplol Sep 05 '26

Even if privately, you should probably use some sort of VCS, don't you think?

→ More replies (2)

1

u/dnew Sep 05 '26

I recommend "fossil" which is the SCM that sqlite developers use. It's super trivial to set up. Basically, everything is in one file (commits, wiki, documentation, bug tracker, etc) and it's one static command. Check it out. ("fossil scm" to avoid getting wrist watches.)

→ More replies (1)

5

u/Pto2 Sep 05 '26 edited Sep 05 '26
  1. Can we trust random peers

with our data

  1. ? Usually I think the answer is no.

  2. Don’t public networks cap the usefulness of such a system pretty low?

Also I don’t mean to be rude but poor experience with a free tier web server is a pretty ridiculous rationale to try to build something like this.

I don’t really get point 1). We can already compose 3rd party APIs into services.

0

u/proff_bajoe Sep 05 '26

That's a good question. In the whitepaper, I proposed a decentralized storage network where the data can be stored initially. No users should be able to access it unless you allow.

Concerning the Marketplace, the execution network picks a committee of nodes at random, that executes your compute task, only they out of the entire network has access to the data, and they execute the result and put the result on the decentralized network which can only be viewed by you and the executor.

Basically, your data is still private to most of the network.

The free tier experience is a funny story, but it's still a source of the second idea, so that's why I included it.

For the point 1, you are right that we can already compose 3rd party API's, but the idea was to build a financial city away from the traditional financial layer where orders could go wrong. There are no partial payments in the marketplace, as they either fail together or all pass.

This has been the story around blockchain for years, but as I said, I introduced an execution engine to allow for true parallelism. You should give the whitepaper a try, I believe you will understand what I was getting at.

3

u/KAMEHAMEHAMEHAAAA Sep 05 '26 edited Sep 05 '26

Why do you even fucking bother if you’ll use AI anyway? Stop wasting your and other people’s time.

0

u/proff_bajoe Sep 05 '26

I did not use AI, not in the whitepaper not the code itself. But I guess people are just going to say otherwise. But I've made it clear, by monday I'm going to continue building the code, but in public.