# NoM as P2P mining infrastructure for Bitcoin

**URL:** https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239
**Category:** Development
**Created:** [November 21, 2023, 9:44am UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239 "2023-11-21T09:44:50Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![aliencoder](https://forum.hypercore.one/user_avatar/forum.hypercore.one/aliencoder/32/49_2.png) [@aliencoder](https://forum.hypercore.one/u/aliencoder)
#### Post date: [November 21, 2023, 9:44am UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/1 "2023-11-21T09:44:51Z")

</div>

Inspired by the discussion for dynamic Plasma, I’m coming up with a brand new development that seeks to decentralize the mining pools found in Bitcoin.

Every use in NoM can act like a “solo-miner” and use PoW to generate Plasma and issue feeless transactions.

I’m thinking out loud now: is it possible to recycle this PoW and mine actual Bitcoin?

I’ve come across [Braidpool](https://blog.opdup.com/2021/06/30/can-braidpool-reuse-p2pool-components.html), a new concept that seems to check all the boxes:

1. A peer to peer network of miners to disseminate shares:  
We already have a p2p network of “miners”: they are the users of NoM.

2. A rewards calculation algorithm that incentivizes miners to disseminate them at the earliest.  
Very interesting because we already have this mechanism: you want your transaction to be issued as soon as possible.

3. Payment channels to make payouts to miners so that a constant amount of blockspace is required, independent of the number of participating miners.  
Here’s where PTLCs come into play.

4. An anonymous hub that can’t deny rewards payouts to miners.  
Can Pillars be those anonymous hubs? They already issue payouts for hundreds of delegators.

> In P2Pool the network difficulty is adjusted so that the pool finds one share every 30 seconds. This results in smaller miners struggling to find enough share and makes P2Pool economically nonviable for them. In Braidpool, this is not the case. Each miner participating in Braidpool can choose the difficulty they mine at so that they generate a share at an interval of their choosing. Small miners will mine at low difficulty to generate a share every 10 seconds, while large miners will mine at a much larger difficulty to find a share every 10 seconds. Both the difficulty and the share period can be configured by the miner.

I’m remembering some parts of the whitepaper that compares Pillars to mining pools. Is the whitepaper so forward thinking? The more I read, the more interesting those ideas become… I’m trying to connect some dots here.

We should definitely explore this subject.

---

<div class="post-metadata">

### Author: ![0x3639](https://forum.hypercore.one/user_avatar/forum.hypercore.one/0x3639/32/33_2.png) [@0x3639](https://forum.hypercore.one/u/0x3639)
#### Post date: [November 21, 2023, 2:43pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/2 "2023-11-21T14:43:09Z")

</div>

Let me summarize what you are thinking about to make sure I understand.

- P2P mining pool (so we don’t need to join a pool and dox)
- PTLC to make payments to miners (anon)
- Generate PoW for TXs and “use” it to mine Bitcoin while not being used for plasma.

Is this correct?

I’m wondering if Miners can generate PoW for plasma, store it up, and then sell it for TXs. I’ve talked to @vilkris about this and there are limitations. But if we can get miners involved we can really accelerate growth. Need to be able to store the plasma, and use it for different TXs on different addresses.

---

<div class="post-metadata">

### Author: ![aliencoder](https://forum.hypercore.one/user_avatar/forum.hypercore.one/aliencoder/32/49_2.png) [@aliencoder](https://forum.hypercore.one/u/aliencoder)
#### Post date: [November 21, 2023, 3:45pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/3 "2023-11-21T15:45:13Z")

</div>

> [@0x3639](#):
>
> - P2P mining pool (so we don’t need to join a pool and dox)

Users that want feeless txs via PoW will need to participate into the P2P mining pools (setup around a Pillar hub).

> [@0x3639](#):
>
> - PTLC to make payments to miners (anon)

Actually we can store the mined Bitcoins in a TSS controlled by the Pillars. And use that Bitcoin to pay fees for embedding information into the Bitcoin blockchain.

> [@0x3639](#):
>
> - Generate PoW for TXs and “use” it to mine Bitcoin while not being used for plasma.

Generate SHA-256d PoW to mine Bitcoin _while_ it is being used for feeless txs. Basically merge-mine Bitcoin while generating Plasma for feeless txs.

- NoM can become the first decentralized mining pool for Bitcoin, strengthening the hashrate, while increasing the number of mining peers (more users on NoM =\> more hashrate =\> more BTC mined =\> more TVL =\> more users, positive feedback loop)
- it can become the first network to acquire Bitcoins by mining them in a trustless way
- it can use mined BTC to embed information into the Bitcoin blockchain (tapscripts) by paying fees and unlock a myriad of use cases (including the “Holy Grail” aka Bitcoin DeFi)
- it can become the first decentralized network to simultaneously mine, hold and use on-chain BTC trustlessly, providing added value and acting as a Bitcoin L2
- creates a symbiotic relationship with Bitcoin by providing hashrate in exchange for block space (mine & pay sats/vbyte)

---

<div class="post-metadata">

### Author: ![vilkris](https://forum.hypercore.one/user_avatar/forum.hypercore.one/vilkris/32/47_2.png) [@vilkris](https://forum.hypercore.one/u/vilkris)
#### Post date: [November 22, 2023, 12:45pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/4 "2023-11-22T12:45:01Z")

</div>

A couple questions:

What kind of hashrate are you expecting these p2p mining pools to realistically achieve? Considering we can roughly say that 1M laptops = 1 flagship Antminer.

Is the user providing the hashpower getting the bitcoin reward or does the reward go to the TSS?

If difficulty is converted into plasma, then what’s stopping an attacker from using a cheap old ASIC and hogging all the PoW plasma, unless regular users also use ASICs?

---

<div class="post-metadata">

### Author: ![aliencoder](https://forum.hypercore.one/user_avatar/forum.hypercore.one/aliencoder/32/49_2.png) [@aliencoder](https://forum.hypercore.one/u/aliencoder)
#### Post date: [November 22, 2023, 5:09pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/5 "2023-11-22T17:09:49Z")

</div>

> [@vilkris](#):
>
> What kind of hashrate are you expecting these p2p mining pools to realistically achieve?

If properly incentivized, some people might spin up some old ASIC equipment. From the whitepaper: "the pillars can outsource the proof of work, acting as mining pools to amass resources and rewarding accordingly the clients that supply them with computational power. ". Think of Plasma as a byproduct of merge-mining Bitcoin and PoW delegation rewards. Some people will mine for Plasma, others for ZNN or both. A market will emerge.

> [@vilkris](#):
>
> Considering we can roughly say that 1M laptops = 1 flagship Antminer.

Ordinary users will generate Plasma regardless of PoW, QSR fusing or even burning ZNN as fees in order to issue transactions on the network.

> [@vilkris](#):
>
> If difficulty is converted into plasma, then what’s stopping an attacker from using a cheap old ASIC and hogging all the PoW plasma, unless regular users also use ASICs?

The attacker will spam with PoW, but the Bitcoins generated as a result will go to the network. Also from the whitepaper: “self-balancing difficulty algorithm that will use both ASIC-friendly and ASIC-resistant hashing algorithms” and “will balance between ASIC-friendly and ASIC-resistant hashing algorithms in order to improve network security and obtain a higher degree of decentralization”. Plus users will have a multi-lane system for transactions, they won’t be limited in any way.

Right now I’m gathering all the pieces of the puzzle.

---

<div class="post-metadata">

### Author: ![Blueginger](https://forum.hypercore.one/letter_avatar_proxy/v4/letter/b/f0a364/32.png) [@Blueginger](https://forum.hypercore.one/u/Blueginger)
#### Post date: [November 26, 2023, 2:36pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/6 "2023-11-26T14:36:12Z")

</div>

If we were to go forward with this, how much time will it take approximately to implement it?

---

<div class="post-metadata">

### Author: ![0x3639](https://forum.hypercore.one/user_avatar/forum.hypercore.one/0x3639/32/33_2.png) [@0x3639](https://forum.hypercore.one/u/0x3639)
#### Post date: [November 26, 2023, 5:52pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/7 "2023-11-26T17:52:53Z")

</div>

@aliencoder are you considering this section of the whitepaper in your thinking? Seems like this is a separate topic than what you are researching now.

 ![Screenshot 2023-11-26 at 11.51.27 AM](https://hypercore.nyc3.digitaloceanspaces.com/original/1X/6b387654945dfda1792098d1d95926be9a531f1f.png)

---

<div class="post-metadata">

### Author: ![Zyler](https://forum.hypercore.one/user_avatar/forum.hypercore.one/zyler/32/341_2.png) [@Zyler](https://forum.hypercore.one/u/Zyler)
#### Post date: [November 26, 2023, 5:53pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/8 "2023-11-26T17:53:46Z")

</div>

I had some Questions 🕶 but it’s okay if they are hard to answer at this point in time …

So Zenon as a whole is a P2P btc mining pool, where each pillar is a miner and the btc goes to the tss?

Say the pillar outsources its PoW, making the pillar itself a small mining pool. Can that also be P2P? Or does it need to be more like a traditional mining pool, as the 3rd party miners need to trust the pillar which has control over rewards distribution and fees charged, and if the pillar goes down the mining stops? Why would 3rd party miners enter into a traditional mining pool with pillars if the future is P2P, is it cos they are incentivised by mergemined ZNN rewards too, is that the tradeoff?

And you say regular non-pillar ZNNAliens can have their PoW for transactions recycled, do they get rewarded in proportion to their hash contribution too, are they considered part of the pillar’s pool? Is that where the Braid implementation comes in, because it’s friendly to small miners? Doesn’t Braidpool have a minimum difficulty level though, so people below the threshold won’t be able to generate any shares? I guess their reward is they get to have a feeless transaction, regardless of any BTC reward … and the recycled PoW is a public good which indirectly benefits them because it benefits zenon overall

---

<div class="post-metadata">

### Author: ![Chadass](https://forum.hypercore.one/user_avatar/forum.hypercore.one/chadass/32/32_2.png) [@Chadass](https://forum.hypercore.one/u/Chadass)
#### Post date: [November 26, 2023, 8:55pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/9 "2023-11-26T20:55:42Z")

</div>

From what I understand @aliencoder wants to make the **protocol** a mining pool, not build a business model where pillars outsource PoW. Trustless mining pool.

I’m pretty proud of my summary so please don’t ruin it Alien.

---

<div class="post-metadata">

### Author: ![aliencoder](https://forum.hypercore.one/user_avatar/forum.hypercore.one/aliencoder/32/49_2.png) [@aliencoder](https://forum.hypercore.one/u/aliencoder)
#### Post date: [November 26, 2023, 9:19pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/10 "2023-11-26T21:19:43Z")

</div>

> [@Blueginger](#):
>
> how much time will it take approximately to implement it

The main thing is to get it right from the beginning. And then focus all dev effort into it.

> [@0x3639](#):
>
> are you considering this section of the whitepaper

I’m considering all sections and adapt them to today’s reality.

> [@Zyler](#):
>
> making the pillar itself a small mining pool

P2P mining means that every network participant will be able to merge-mine, regardless of their status in the network (user, staker, delegator, node, etc).

> Vires in numeris

Pillars already have a pool of delegators: merge-mining can be used to further incentivize less potent hardware to participate. This is important because small miners can offset their costs by generating ZNN, while benefiting from the price exposure (larger miners with more hashpower are generating BTC for the network as a whole).

Furthermore, the BTC that will get mined is a collective good of the network (that will be used for other network operations aka paying for block space), increasing the overall value of the network. Pillars can reuse this PoW and “anchor” it into the ledger: “strengthen the ledger by adding weight into it (i.e. recording the resulting work of the PoW link”.

> [@Zyler](#):
>
> Why would 3rd party miners enter into a traditional mining pool with pillars if the future is P2P, is it cos they are incentivised by mergemined ZNN rewards too, is that the tradeoff?

The mining will be done _peer-to-peer_: Pillars will only do “[miner share accounting](https://blog.opdup.com/specifications/BlockGeneration.pdf)”, but with ZNN instead of BTC. The resulting BTC will go into the network’s “treasury”.

> [@Zyler](#):
>
> Doesn’t Braidpool have a minimum difficulty level though, so people below the threshold won’t be able to generate any shares?

“Since [small miners](https://blog.opdup.com/2021/06/30/can-braidpool-reuse-p2pool-components.html) are able to find shares at their chosen difficultly, they can claim rewards for all their PoW shares.”

> [@Chadass](#):
>
> Trustless mining pool.

Exactly this is the objective. But we need to carefully design it in such a way that is both technically and economically feasible.

---

<div class="post-metadata">

### Author: ![Zyler](https://forum.hypercore.one/user_avatar/forum.hypercore.one/zyler/32/341_2.png) [@Zyler](https://forum.hypercore.one/u/Zyler)
#### Post date: [November 27, 2023, 4:02am UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/11 "2023-11-27T04:02:05Z")

</div>

I think I understand better now. It seems like Zenon’s hash rate can’t really be forced overnight, there’s an organic growth/positive feedback loop at play where more use of the NoM is required, since it’s not a mining business as such as the BTC would be a public good rather than paid in proportion to hash contributed. Very interesting

---

<div class="post-metadata">

### Author: ![aliencoder](https://forum.hypercore.one/user_avatar/forum.hypercore.one/aliencoder/32/49_2.png) [@aliencoder](https://forum.hypercore.one/u/aliencoder)
#### Post date: [November 30, 2023, 10:11pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/12 "2023-11-30T22:11:01Z")

</div>

Solo-mining is [back in town](https://bitcointalk.org/index.php?topic=5237323.msg63244510#msg63244510).

Peer-to-peer merge-mining will be game-changer for miners that wish to secure additional revenue for their operations.

---

<div class="post-metadata">

### Author: ![BigFrank](https://forum.hypercore.one/letter_avatar_proxy/v4/letter/b/e47c2d/32.png) [@BigFrank](https://forum.hypercore.one/u/BigFrank)
#### Post date: [December 8, 2023, 6:05pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/14 "2023-12-08T18:05:23Z")

</div>

Laymans terms…

By locking BTC in NoM, I can become a BTC miner and earn BTC.

is this correct?

---

<div class="post-metadata">

### Author: ![coinselor](https://forum.hypercore.one/letter_avatar_proxy/v4/letter/c/41988e/32.png) [@coinselor](https://forum.hypercore.one/u/coinselor)
#### Post date: [December 9, 2023, 5:45am UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/16 "2023-12-09T05:45:25Z")

</div>

Incorrect.

The definition of a BTC miner does not change. They provide PoW to the BTC network in exchange for the ability to mint a block when successful. If merge-mining with ZNN, they will reuse the PoW to do some NoM stuff in exchange for some benefits.

---

<div class="post-metadata">

### Author: ![aliencoder](https://forum.hypercore.one/user_avatar/forum.hypercore.one/aliencoder/32/49_2.png) [@aliencoder](https://forum.hypercore.one/u/aliencoder)
#### Post date: [December 9, 2023, 8:31am UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/17 "2023-12-09T08:31:50Z")

</div>

> [@coinselor](#):
>
> The definition of a BTC miner does not change.

Exactly.

> [@coinselor](#):
>
> If merge-mining with ZNN, they will reuse the PoW to do some NoM stuff

NoM stuff = merge-mine ZNN & BTC, add weight onto the ledger via PoW share-blocks and receive ZNN in the process. The mined BTC go into a network wide TSS for decentralized custody.

Furthermore, NoM’s BTC will be used to allocate Bitcoin block space for smart contracts that will get executed on NoM. Native, on-chain BTC, not a wrapped representation of it.

---

<div class="post-metadata">

### Author: ![BigFrank](https://forum.hypercore.one/letter_avatar_proxy/v4/letter/b/e47c2d/32.png) [@BigFrank](https://forum.hypercore.one/u/BigFrank)
#### Post date: [December 9, 2023, 1:28pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/18 "2023-12-09T13:28:54Z")

</div>

Ok got it. I was pretty confused on the topic. This and some discussion in the tg helped make it clear. ty.

---

<div class="post-metadata">

### Author: ![Blueginger](https://forum.hypercore.one/letter_avatar_proxy/v4/letter/b/f0a364/32.png) [@Blueginger](https://forum.hypercore.one/u/Blueginger)
#### Post date: [December 9, 2023, 1:44pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/19 "2023-12-09T13:44:35Z")

</div>

> [@aliencoder](#):
>
> Furthermore, NoM’s BTC will be used to allocate Bitcoin block space for smart contracts that will get executed on NoM. Native, on-chain BTC, not a wrapped representation of it.

I didnt understand this part. How is NoM BTC native BTC?

---

<div class="post-metadata">

### Author: ![coinselor](https://forum.hypercore.one/letter_avatar_proxy/v4/letter/c/41988e/32.png) [@coinselor](https://forum.hypercore.one/u/coinselor)
#### Post date: [December 9, 2023, 2:18pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/20 "2023-12-09T14:18:15Z")

</div>

It’s not NoM BTC. It’s literally NoM’s BTC, as in native BTC owned by NoM (pillar’s TSS).

---

<div class="post-metadata">

### Author: ![Stark](https://forum.hypercore.one/user_avatar/forum.hypercore.one/stark/32/656_2.png) [@Stark](https://forum.hypercore.one/u/Stark)
#### Post date: [December 9, 2023, 2:59pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/21 "2023-12-09T14:59:24Z")

</div>

[https://x.com/Zenon\_Core/status/1733313255525765501?s=20](https://x.com/Zenon_Core/status/1733313255525765501?s=20)

Paying it forward. Context is a campaign by Taproot Wizards to troll Luke about censoring ordinals.

---

<div class="post-metadata">

### Author: ![Chadass](https://forum.hypercore.one/user_avatar/forum.hypercore.one/chadass/32/32_2.png) [@Chadass](https://forum.hypercore.one/u/Chadass)
#### Post date: [December 9, 2023, 3:23pm UTC](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239/22 "2023-12-09T15:23:32Z")

</div>

It it going through TSS here? I’m not quite sure.

[Next page](https://forum.hypercore.one/t/nom-as-p2p-mining-infrastructure-for-bitcoin/239.md?page=2)
