Return-Path: Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2E07EC0881 for ; Mon, 9 Dec 2019 09:48:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1C8D587F8E for ; Mon, 9 Dec 2019 09:48:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VmlrtsnemWCM for ; Mon, 9 Dec 2019 09:48:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ot1-f68.google.com (mail-ot1-f68.google.com [209.85.210.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id C105787F84 for ; Mon, 9 Dec 2019 09:48:01 +0000 (UTC) Received: by mail-ot1-f68.google.com with SMTP id i4so11655939otr.3 for ; Mon, 09 Dec 2019 01:48:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alephium-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IumTk+mOnOh4x3eQZL0zunTkoSqCIgdWFpkhthNtjqQ=; b=WUWpSwx68xftbvsxUKwN2U0KirbeIz0UNQaUElCoYyzvsiR/012DOI1ESEgW58Rz9x LeXxuijcmswFVn8KHAJoSkjdN+cBvqhiHpEqnqA/UTb3KD9cedRbDHaTIok1wjNppfqa NP7mfjXwS7syxSDBYHkdxYjCSQLN7GpdBN34zBKjmMQDDoZFxoOmvua0J3jJmafywrgN jRKyiG3rkTgqB1qwfBwE/qbrnAdbSLp80UTdY8I0XoMA2SEMP7tNzzjU2XafLTKNzkV6 SNCTTwc4TRNujNmsHttyQOJiuXXZxW1ywgJ6tqkBMRB58R40W/WfY4wxT/Q8BEXdvdO0 9TCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IumTk+mOnOh4x3eQZL0zunTkoSqCIgdWFpkhthNtjqQ=; b=tX3D3gRwpHISK4vlA2dy58QNfFRQ7788/oL3OsaUK1r7XqikXMhLGl7e3W770Hu2Ts z0iDfHgNgtkI80fMjRX1idenwTakivQtRq6FQiS8BJw8yznzQfbWfVGjaeCFo6aMR1Bv LG0eQ/dGVBes7V2liyNem3OgiBiH2vtVHmMuRfr1KOrUu7hhH0AgUUQpPtLQ8/VVr4cV 9ru6QbJpopuw5nQgpineX196AkfdFP3eX1KlJk42DLqk8wbaP8V04ZG5qkuDrMgKqdyu KEsOfOeJKeCMBAXDncAU8QKIcYWu0C7fwskcjufZ0h/SYgzE6APpaByAzIaCUjGTl+aK 4bCg== X-Gm-Message-State: APjAAAWXkshBjL1BduLQMHvgUo18kJGX9fkeq4S30Is4wf2YJVj7GhOv 5fJQbk+LlrHzZyvCAimsG/agqUJr5YCOumDAKTCtYw== X-Google-Smtp-Source: APXvYqw8qXDr8aYs+eMSA5sB2rZ4zpS0BzSYnPGzhW9xOtf4jh2KKR8rLwG3GRRO1R/NNh+idRGghZf+B2j8CGYorg0= X-Received: by 2002:a9d:6654:: with SMTP id q20mr20076709otm.284.1575884880665; Mon, 09 Dec 2019 01:48:00 -0800 (PST) MIME-Version: 1.0 References: <29C07E1A-DC6B-49F0-893B-A59E7BD8DB1C@monash.edu> In-Reply-To: <29C07E1A-DC6B-49F0-893B-A59E7BD8DB1C@monash.edu> From: Cheng Wang Date: Mon, 9 Dec 2019 10:47:49 +0100 Message-ID: To: Runchao Han Content-Type: multipart/alternative; boundary="00000000000084f42f0599424ad9" X-Mailman-Approved-At: Mon, 09 Dec 2019 14:53:45 +0000 Cc: bitcoin-dev@lists.linuxfoundation.org Subject: Re: [bitcoin-dev] Reducing energy consumption and increasing security at the same time X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Dec 2019 09:48:03 -0000 --00000000000084f42f0599424ad9 Content-Type: text/plain; charset="UTF-8" Hi Runchao, - 1st question regarding double spending: We won't allow a miner to sacrifice coinbase reward as much as possible for a practical system. This will be achieved by setting a dynamic upper bound for the number of rewards the miner could sacrifice. The upper bound would be related to the actual mining difficulty (not the weighted one) of the recent mining epoch. In Section 8 of the paper, I discussed quite a lot about how to select system parameters and how to transition the current PoW systems to PoLW. Just for an example, for Bitcoin, we might transition from giving up 0 coinbase reward to giving up maximal 10% coinbase reward. In the long term, if the value of Bitcoin goes as comparable to gold, we could allow the miners to give up more rewards. The network could adjust these bounds solely based on the internal state (i.e. the actual mining difficulty). In short, PoLW could reduce the energy consumption of Bitcoin in equilibrium from coinbase reward to even sub-linear. Still, the absolute energy consumption would be kept at a sufficiently high level. - 2nd question regarding tx fees: We could simply reduce this problem to purely coinbase reward by adding tx fees into the maximal coinbase reward. When the tx fees dominant miner's profits, we could simply allow negative coinbase reward (i.e. miners spend coins for the coinbase transaction). Note that, using PoLW, we could remove the halving mechanism, as PoLW is adaptive already. Best, Cheng! On Mon, Dec 9, 2019 at 1:45 AM Runchao Han wrote: > Hi Cheng, > > This is an interesting proposal! > While the incentive analysis is sound, I have two concerns: > > ## What if a guy keeps mining easy blocks to launch 51% attacks? > > With PoLW, a miner can sacrifice the coinbase reward as much as possible > to mine blocks faster. > If the blockchain follows the longest chain rule, PoLW may make > 51% attacks much easier. > An easy way of fixing this is to choose the chain with most work rather > than most blocks. > > ## What if the coinbase tx is no longer the majority of mining reward, but > the fx fee? > > This might happen in the future. > A possible solution is to limit the number of txs for easy blocks. > For example, if a miner chooses to mine blocks N times easier, he can only > include txs of which the total size is <= (block_size - metadata_size) / N. > > Best regards, > Runchao > > Date: Sun, 8 Dec 2019 11:43:49 +0100 > From: Cheng Wang > To: bitcoin-dev@lists.linuxfoundation.org > Subject: [bitcoin-dev] Reducing energy consumption and increasing > security at the same time > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > Hi Everyone, > > I would like to share my serious work on reducing the energy consumption of > PoW without sacrificing security. My new type of algorithm is called PoLW. > For a practical system where mining is profitable, PoLW could actually > improve the security of the system. > > The idea is to shift part of the external cost of mining in the physical > world (mainly energy consumption) to the internal cost of the network. In > PoLW, the miners are able to give up part of the coinbase reward so as to > get weight (> 1) for the block hash they produce. The total cost of > generating a new block would still be equal to maximal coinbase reward in > equilibrium. > > I analyzed two algorithms in the paper: linear PoLW and exponential PoLW. > Linear PoLW could reduce energy consumption by a factor close to 1/2 in > equilibrium, while exponential PoLW could reduce energy consumption by an > arbitrary factor in equilibrium. > > In a practical system, mining is usually (if not always) profitable. If we > transition from PoW to PoLW, the external costs of mining would decrease > and the internal costs will increase. However, the decrease in external > costs would be less than the increase in internal costs since mining is > profitable. The total cost of block generation would get higher, therefore, > the security will increase. > > Of course, we could not decrease the external costs of any existing system > by a factor close to zero immediately. There is a section in my paper > discussing this particularly. The principle of applying PoLW is that > keeping the absolute external cost increasing all the time, but the > percentage of external cost in the total cost gets lower eventually. > > This work is based on solid math calculation, and I am looking forward to > feedback and discussions. My paper is available at: > https://github.com/alephium/research/raw/master/polw.pdf > > It's inspired by the recent great paper of Itay, Alexander, and Ittay: > https://arxiv.org/abs/1911.04124 > > Best, > Cheng Wang > > > -- Cheng Wang # Love math and coding # Founder of Alephium; Proposed BlockFlow algorithm # Proposed the first linear-time asynchronous Byzantine consensus algorithm --00000000000084f42f0599424ad9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Runchao,

- 1st question regard= ing double spending:

We won't allow a miner to sacri= fice coinbase reward as much as possible for a practical system. This will = be achieved=C2=A0by setting a dynamic upper bound for the number of rewards= the miner could sacrifice. The upper bound would be related to the actual = mining difficulty (not the weighted one) of the recent mining epoch.
<= div>
In Section 8 of the paper, I discussed quite a lot about= how to select system parameters and how to transition the current PoW syst= ems to PoLW. Just for an example, for Bitcoin, we might transition from giv= ing up 0 coinbase reward to giving up maximal 10% coinbase reward. In the l= ong term, if the value of Bitcoin goes as comparable to gold, we could allo= w the miners to give up more rewards. The network could adjust these bounds= solely based on the internal state (i.e. the actual mining difficulty).

In short, PoLW could reduce the=C2=A0energy consumpt= ion of Bitcoin in equilibrium from coinbase reward to even sub-linear. Stil= l, the absolute energy consumption would be kept at a sufficiently high lev= el.

- 2nd question regarding tx fees:
We could simply reduce this problem to purely coinbase reward = by adding tx fees into the maximal coinbase reward. When the tx fees domina= nt miner's profits, we could simply allow negative coinbase reward (i.e= . miners spend coins for the coinbase transaction).

Note that, using PoLW, we could remove the halving mechanism, as PoLW is = adaptive=C2=A0already.

Best, Cheng!
On Mon, D= ec 9, 2019 at 1:45 AM Runchao Han <runchao.han@monash.edu> wrote:
H= i Cheng,

This is an interesting proposal!
While the= incentive analysis is sound, I have two concerns:

##=C2=A0What if a guy keeps mining easy blocks to launch 51% attacks?

With PoLW= , a miner can sacrifice the coinbase reward as much as possible to mine blo= cks faster.
If th= e blockchain follows the=C2=A0longest chain rule, PoLW may make 51%=C2=A0at= tacks much easier.
An easy way of fixing this is to choose the chain with most work rather t= han most blocks.

## What if the coinbase tx= is no longer the majority of mining reward, but the fx fee?

=
This might happen in the future.
A possible solution i= s to limit the number of txs for easy blocks.
For example, if a m= iner chooses to mine blocks N times easier, he can only include txs of whic= h the total size is <=3D (block_size - metadata_size) / N.
Best regards,
Runchao

<= blockquote type=3D"cite">
Date: Sun, 8 Dec 2019 11:43:49 +0100
= From: Cheng Wang <cheng@alephium.org>
To: bitcoin-dev@lists.linuxfoundation.org
Subject: [bitcoin-dev] Reducing energy consumption and increasing
= security at the same time
Message-ID:
<
CAJgZxF4G_Bj= J=3DOhuzhjfZtkePnEc2hz8DMZzFzWKBNh17XhBeQ@mail.gmail.com>
Content= -Type: text/plain; charset=3D"utf-8"

Hi Everyone,

I= would like to share my serious work on reducing the energy consumption of<= br>PoW without sacrificing security. My new type of algorithm is called PoL= W.
For a practical system where mining is profitable, PoLW could actuall= y
improve the security of the system.

The idea is to shift part o= f the external cost of mining in the physical
world (mainly energy consu= mption) to the internal cost of the network. In
PoLW, the miners are abl= e to give up part of the coinbase reward so as to
get weight (> 1) fo= r the block hash they produce. The total cost of
generating a new block = would still be equal to maximal coinbase reward in
equilibrium.

I= analyzed two algorithms in the paper: linear PoLW and exponential PoLW.Linear PoLW could reduce energy consumption by a factor close to 1/2 inequilibrium, while exponential PoLW could reduce energy consumption by an<= br>arbitrary factor in equilibrium.

In a practical system, mining is= usually (if not always) profitable. If we
transition from PoW to PoLW, = the external costs of mining would decrease
and the internal costs will = increase. However, the decrease in external
costs would be less than the= increase in internal costs since mining is
profitable. The total cost o= f block generation would get higher, therefore,
the security will increa= se.

Of course, we could not decrease the external costs of any exist= ing system
by a factor close to zero immediately. There is a section in = my paper
discussing this particularly. The principle of applying PoLW is= that
keeping the absolute external cost increasing all the time, but th= e
percentage of external cost in the total cost gets lower eventually.
This work is based on solid math calculation, and I am looking forwar= d to
feedback and discussions. My paper is available at:
= https://github.com/alephium/research/raw/master/polw.pdf

It'= s inspired by the recent great paper of Itay, Alexander, and Ittay:
https://arxiv.or= g/abs/1911.04124

Best,
Cheng Wang



= --
Cheng Wang
# Love math and coding
# Founder of Alephium; Proposed BlockFlow algorithm
# Propo= sed the first linear-time asynchronous Byzantine consensus algorithm
--00000000000084f42f0599424ad9--