From 0628577cbc220726499007fdf40a118b3a8beeab Mon Sep 17 00:00:00 2001 From: nighthawk24 Date: Thu, 18 Aug 2022 16:30:02 -0400 Subject: [PATCH] Include base_fee & marginal_fee constants. Update the discount constant to 3. Create deployment section and make Security and Privacy considerations top-level heading. --- ...proportional-output-fee-mechanism-pofm.rst | 42 ++++++++++++------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/zip-proportional-output-fee-mechanism-pofm.rst b/zip-proportional-output-fee-mechanism-pofm.rst index 9c755f88..89253d38 100644 --- a/zip-proportional-output-fee-mechanism-pofm.rst +++ b/zip-proportional-output-fee-mechanism-pofm.rst @@ -69,7 +69,7 @@ Requirements for gathering consensus Wallet developers SHOULD update the fees to the proposed formula by Madars and Kris Nuttycombe [#madars-1]_ -min_fee = base_fee * max(1, #inputs + #outputs - 4) +min_fee = base_fee * max(1, #inputs + #outputs - 3) Where #inputs and #outputs also take into account transparent inputs and outputs. Otherwise, the fee structure (if not otherwise changed) will preferentially encourage @@ -115,8 +115,27 @@ The following parties need to be part of the consensus: * zcash-light-client-ffi * zcash-android-wallet-sdk -Security and privacy considerations ------------------------------------ + +Specification +============= + +Wallets implementing this specification will use a conventional fee in the form of +base_fee and marginal_fee. + +The proposal would end up selecting one of: +* base_fee = 1000, marginal_fee = 250 in @nuttycom's proposal. +* base_fee = 1000, marginal_fee = 1000 in @madars' proposal. +* base_fee = 10000, marginal_fee = 2500 in @daira's proposal. +* base_fee = 1000, marginal_fee = 1000 for Shielded, Shielding and De-shielding +transactions, and base_fee = 10000, marginal_fee = 10000 for Transparent transactions +per @nighthawk24's proposal. + +And calculated per the following forumla: +min_fee = base_fee + marginal_fee * max(0, #inputs + #outputs - 3) + + +Security and Privacy considerations +============= Unique transaction fees may reveal specific users or wallets or wallet versions, which would reduce privacy for those specific users and the rest of the network. @@ -158,17 +177,6 @@ Wallet developers and operators should monitor the Zcash network for rapid growth in transaction rates. -Specification -============= - -Wallets implementing this specification will use a conventional fee in the form of -base_fee = ... -marginal_fee = ... -min_fee = base_fee + marginal_fee * max(0, #inputs + #outputs - 4) -starting from block 1,800,000 for Mainnet, or immediately on implementing this -ZIP for Testnet. - - Transaction relaying -------------------- @@ -187,6 +195,12 @@ specifies a *low\_fee\_penalty* that is added to the "eviction weight" if the transaction pays a fee less than the `min_fee` specified by this ZIP. +Deployment +============= +The height for coordinating deployment is block 1,800,000 for Mainnet, or immediately on +implementing this ZIP for Testnet. + + Endorsements ============