zcashd 5.4.0 and supply tracking
zcashd added tracking of the total chain supply and the transparent pool balance, and unclaimed fees were confirmed at about 368.58 ZEC.
Agenda summary 8
Zebra update - mining pool RPCs and removing code duplication
Zcash Foundation · Teor, Str4d, Conrado
- To support mining pools, the team implemented RPCs such as getpeerinfo, getblocksubsidy and the getblocktemplate proposal mode.
- The team fixed bugs in transaction ordering and duplicate selection in the Merkle root and in the template time, and made the output format similar to zcashd's.
- As production code, the team added a transaction lock time check to the mempool. It is not specified in any document, so it had to be found in the zcashd source, and DeckerSU reported it.
- Daira asked for an issue to be filed in the Zcash ZIPs repository to document lock time.
Zebra update - removing code duplication and FROST
Zcash Foundation · Teor, Str4d, Conrado
- The team deduplicated the redpallas code that had been copied into Zebra as a module.
- Str4d pointed out that cleanup with the reddsa crate remains and that there are four redjubjub and redpallas implementations, and Conrado said Zebra now uses reddsa.
- Deirdre said the duplicate redpallas had an early FROST implementation that is being cleaned up. FROST development proceeds to the spec in the ZcashFoundation/frost repository and also includes the re-randomized variant.
- FROST specification version 12 was released. It is the final stage of asking several IRTF chairs to check for conflicts and approve it, and it could become an official document within weeks. Feedback from the original author, Ian Goldberg, was minor and has been incorporated.
Zcashd 5.4.0 and total supply tracking
Electric Coin Company · Str4d, Kris, Daira
- During the 5.4.0 release candidate process, the team found a serious performance regression created by a chain sync optimization from a few releases ago. rc.3 will come out soon, and 5.4.0 is targeted for early next week.
- Based on an old PR by 0xArbitrage, it tracks the transparent pool size and the chain supply. The supply is the coinbase outputs minus the fees miners did not claim, and it should equal the sum of the values of each pool.
- There are about 30,000 cases where miners did not claim fees, totaling about 350 ZEC. The value Daira confirmed is 368.5844552 ZEC, and a Python verification script was included in the release branch.
- Kris said the Zcash posterity fund introduced at Zcon3 works the same way, and if adopted, unclaimed fees would be the fund's first seed.
- Daira said they plan to put this consistency check in as a consensus rule in ZIP 209. Teor said Zebra already does a non-negativity check because it uses the same value type for all four pools.
Zcashd getblocktemplate improvements and DAGSync preparation
Electric Coin Company · Str4d, Daira
- 5.4.0 includes a change backported from Bitcoin that moves work done on each getblocktemplate call into the mempool. Half the createnewblock time was spent on block validity checks, and that time was reduced.
- For large templates, JSON serialization of over 4MB is a big part of the latency, so they said alternatives like a binary API are worth considering from the miner's perspective. Bitcoin does not appear to have a similar improvement.
- In preparation for DAGSync, work is heading toward pre-DAGSync, which separates making existing notes spendable from finding new notes.
- After 5.4.0, commitment tree information will be provided via RPC, shardtree will be integrated, and the scan cache logic will be separated.
Wolfram Blockchain Integration API
Wolfram Blockchain Labs · Jon Woodard
- Wolfram Blockchain Labs, a subsidiary of Wolfram Research, hosts nodes in its own colocation center to integrate blockchains into the Wolfram Language.
- It is closer to a general-purpose blockchain explorer accessed programmatically, and supports reading and writing transactions.
- Over the last few months it built a blockchain framework (a composition notebook and code repository) that lets the community integrate blockchains easily.
- It is applying to Cardano Catalyst and wants the Zcash community's participation to support cross-chain analysis of UTXO chains.
Wolfram blockchain framework - technical Q&A
Wolfram Blockchain Labs · Jon Woodard
- Adi recommended applying for a Zcash grant, which is open year-round, and said Wolfram Alpha integration is proceeding in a separate, larger service.
- It can also be accessed from Python, Node.js, Julia and others through the Wolfram Language client.
- Str4d asked about the share of backend node data versus post-processing and which RPCs are needed, and Jon answered that it accesses the ledger directly and distinguishes raw from cooked requests.
- Str4d said there have been cases where Zcash data in BigQuery was misinterpreted, so interpretation should be made to match the original.
- It was explained that if the differences from Bitcoin, such as Zcash's shielded support, are laid out, Wolfram engineers can support them more easily. Daira said they were impressed that it parses inputs and outputs down to the level of public keys and signature types.
ZSA ZIP review status
Zcash Foundation · Deirdre, Daira, Str4d
- News from ECC centers on the DAGSync work and maintaining zcashd.
- ZIP editors Deirdre and Daira are reviewing the draft ZIPs for ZSA issuance, transfer and burn, and the authors are responding with implementation changes. To cut round-trip delay, a synchronous call between the ZIP editors and the ZSA team is being arranged.
- Daira added that on the implementation side, work is needed to confirm that the circuit fits in 2^11 rows.
Open discussion - total supply and tail emission
Adi, Str4d, Daira
- Adi asked whether Zcash has the problem, as Bitcoin does, of not reaching exactly 21 million.
- Str4d answered that Bitcoin's remainder is because the genesis block did not claim its 50 BTC, whereas Zcash set the genesis reward to 0 with the slow start parameter, so it does not apply.
- They said rounding error also remains under the current rules, but if a system like the posterity fund comes into existence, it could make up the difference from the theoretical supply and make them match.
- Daira said they doubt whether a Bitcoin-style coin whose block reward goes to zero is sustainable and secure in the long run, and thinks tail emission is needed, as with Monero or Ethereum.
- They said this is their personal opinion, that it needs community discussion, and that PoS may have different security requirements.
This summary is based on the original meeting notes; check them for exact details.