SaitoTech / saito-rust

A high-performance (reference) implementation of Saito in Rust
42 stars 10 forks source link

Miner Module #42

Closed BearGuy closed 3 years ago

BearGuy commented 3 years ago

For now, to generate slips and get Saito circulating in the system, we auto generate GoldenTicket Transactions and feed them into the Mempool where they're bundled and added to the chain.

We want a Miner module to do some mining work to generate these golden tickets. We want to port over the existing Miner from the master branch, remove the Lottery and LotteryGame cruft around it and add tests.

clayrab commented 3 years ago

I was speaking with Richard today about the viewpoint that hash difficultly on Saito is actually just a source of randomness and we were thinking that it would be interesting to have a few testnets that demonstrate this in various ways. E.G. we could have a testnet that simply uses the latest BTC block hash as a source of randomness and 100% of the Golden Chunk goes to Routers...

I'd like to see this flexibility reflected in the module interfaces so we can easily drop in different sources of randomness in the future...

I think I may have gave you some pushback to the term "lottery" at some point, but I'm actually coming around on that, but also perhaps it should be in it's own namespace/class?

clayrab commented 3 years ago

Was speaking to David. PoS vs PoW is a better excample of another type of "lotteryGame" we might want to swap in for another testnet or mainnet.

trevelyan commented 3 years ago

Miner module implemented, so closing!