OMG, a “zsa-moon” token should definitely be the first on-chain issuance
jajaja maybe we should
want to be the issuer??
I’m in. Max issuance divided evenly amongst valid addresses memo’d to me … .
I think there should be some kind of sybil resistance to this mechanism. I propose a shielded memo with a proof of forum account
Is NFT issuance possible with ZSA? Is that out-of-scope?
@dontbeevil That’s a good question. As far as I understand it each token is fungible. Asset types are not.
@LeCryptoMath how many bytes will the asset type ID be? I imagine rather then needing NFTs to represent art/collectibles we could issue a seperate new ZSA type for each seperate piece of art/collectible.
Dear Zcash community,
We are super excited to share with you the first DRAFT versions of the two ZIPs that cover the ZSA protocol, which @naure @PabloK @shahafn @vivek and myself worked on for the past months with the help of @daira @str4d and @tromer:
These ZIPs have been in the works for the past two months and we have interacted with the community, the ECC and the ZF developers to ensure the compatibility, usability, privacy & security and elegancy of the protocol.
You can find here the three different calls that we had discussing these ZIPs
- Arborist call (24/02/22): https://youtu.be/jXY01qGyd_I?t=1774
- Arborist call (24/03/22): https://youtu.be/-r06Dm41DS0?t=2325
- Independent call (25/04/22): https://us02web.zoom.us/rec/share/ZbXfGFtOZKsYuRc46TWWhmXBqAR-FGJKTJvKVFuMsiWXuTSd_GvEhM9VTQZIkGnF.cyi1zUFZMxEVIIeo
As our MVP, the issuance mechanism is transparent, and enables several interesting applications of issuance on Zcash. We have designed a protocol that enables batch issuance for finite or infinite supply of assets. It allows for NFT-style issuance, and is off-chain extensible to allow for bridges to be built. In terms of security, we provide the ability for the chain to track the total supply of any token, as well as for individuals to revoke the issuance of an asset id in case of compromise.
In terms of the transfer mechanism, we have designed a circuit that ensures that old-style ZEC Orchard notes can be used as-is within the ZSA protocol, making the transactions totally indistinguishable from the Orchard transactions. This means that we have backward-compatibility and in terms of upgrade, we will not have to create a turnstile.
The transfer has been reviewed to be secure, albeit lacking of an actual security proof, which we hope to at least sketch.
In order to properly support an end-to-end ZSA protocol, we designed a very elegant burning mechanism. We will use the inherited format of the shielding/unshielding of ZEC in the Orchard protocol (that uses the transparent
ValueBalance) in order to confirm that some amount of a given asset has been burnt and is unspendable. We define purely the protocol for burning, but we do not provide a specific implementation of how a bridge should be built, as there could be several ways to accomplish the bridge (the main question is how to transfer data to the bridge operator).
- We have included a paragraph on how we believe the fees for the issuance mechanism should be designed, but we would love the community input. We will review in the coming weeks the study done by George Mason University and the ECC (https://electriccoin.co/wp-content/uploads/2022/05/A-Study-of-Decentralized-Markets-on-the-Zcash-Blockchain.pdf)
- We are looking for feedback on the burn protocol from issuers and bridge operators to understand exactly if this protocol covers the needs of a semi-trustless and secure bridge.
These ZIPs are in DRAFT mode and will definitely see some changes in the months to come, both as we receive feedback from the community and core developers, as well as changes that arise in the implementation process. We have started working on a prototype of these designs in order to have initial tests.
We welcome any comments and questions!
We will be hosting a live twitter spaces in a couple of weeks to discuss this, stay on the look out for more info!
The links are not working and I couldn’t find them on the /zips repository - can you help me fix it?
Thanks for the links! Are the ZIP drafts now in a state where they could actually be presented as draft PRs to the GitHub - zcash/zips: Zcash Improvement Proposals repository?
(Speaking as a ZIP Editor.)
Ditto! These look great!
They appear to be. I would strongly encourage filing them as a PR, so that GitHub’s comment/suggestion/review features can be used and so that changes can be tracked.
this is a great point! We will make sure to do this in the next few days.
Yes please, this would be great to track questions/reviews/suggestions/what has been discussed and what not
Dear all, after some time, please find our monthly update (sorry that we skipped one, between time off and initial development, there was not a lot to update on).
The last two months we have done important progress, ironing out many details of the design of the protocol and the circuit. Specifically,
We have created a pull request with the draft versions of
- ZIP 226: Transfer and Burn of Zcash Shielded Assets
- ZIP 227: Issuance of Zcash Shielded Assets
- In order to comment on these, please use either issue #618 or the review functionality on the pull request itself. Note, for high-level or design comments, use the issue.
We have been advancing at a good pace with the implementation of the protocol
- The transfer protocol changes are pretty advanced - see repo
- The client implementation (RPC) for the ZSA functionality is also advancing well - see repo’s main branch
- We are also getting started with the issuance implementation, having already implemented the issuance key structure - see this pull request
We are advancing with the ZIP for the fee mechanism, though we do not feel like we are ready to share the draft. More on this soon!
We are getting ready to present our work and progress at Zcon3!! We will have one session with concrete design overview, updates and (hopefully) a demo. And we will also host an interactive discussion on the future applications and protocol design for the Zcash blockchain (i.e.: towards real programmability). Do not miss it out.
We are hear to answer any questions!
Thank you all,
The QEDIT team.
Thankyou, this is awesome! We made a start on editing in the ZIP sync meeting on Wednesday. Looking forward to seeing the QEDIT team at Zcon!
Dear Zcash Community,
We are very excited to share with you that we are advancing well with the implementations of the Transfer, Issuance and Burn mechanisms. This update is divided in two parts: first, a detailed update on the project progress; second a request to change the project milestone structure.
Last month we had very productive conversations at Zcon3, including a talk we gave on the details of the ZSA project, a workshop we facilitated on the future of Zcash applications, and a panel discussion I participated on the future of Zcash. We welcome any feedback and questions on any of these.
In terms of the final ZIP, the Fees Mechanism ZIP
Regarding the implementations,
- The transfer mechanism is mostly done (yay!), and we are writing tests, many tests. We are also currently working on the circuit updates, which ended up making the circuit a bit larger than expected, so we are also looking at how to optimize the floor plan of the circuit (see Str4d’s talk at Zcon3). The main overheads were that in order to compute the note commitment of typed assets, we needed to add an extra round of the sinsemilla hash window, and also the fact that we ended up having more branching in the circuit, due to the different cases that need to be handled (mainly the differences between ZEC and non-ZEC notes, real and split / dummy notes). Good news is that we have some ideas for how to optimize the circuit.
- In terms of the issuance protocol, we are also done in the Orchard repo (woop!), and we are also writing many tests. There is work to be done at the client layer (especially given the complexity of the Zcashd client), in order to ensure that the issuers can easily program their concrete issuance application (NFTs, Multi-issuance, delayed, etc…). Given that the issuance is new to the core protocol, there are some consensus changes to implement.
- We are working on the burn mechanism, for which we have decided to not implement any specific burning method, and instead leave it up to the bridge operators to decide how to transmit the necessary information between the user of the token and the bridge operator.
As we approach the end of the implementation milestones, we are preparing for the next part of the project, the review and deployment, and we would like to refine and reorganize some of the milestones in a formal way. This will allow QEDIT to define our timeline in a more concrete manner, especially as we look towards future projects. Currently, there is a single project and grant for everything from design, implementation, code review, testnet deployment to mainnet deployment.
Practically, we have worked on these milestones in a different order, so we would like to propose that we divide the project (all ZSA milestones, as defined here) into two different phases:
- For the first phase of the project, we include all the design and implementation milestones (number 1, 2, 3, 4, 5, 6, 7 and 8). Furthermore, we would like to divide milestone 3 (Transfer Functionality Implementation) into two different milestones, with two different PRs to the Orchard repository, making it a cleaner deliverable:
- Milestone 3a. Transfer Protocol Implementation: will include every aspect of the implementation pertaining to the actual protocol, and would comprise 60% of the budget allocated to milestone 3. The deliverable for this milestone is a PR to the main zcash/orchard repo.
- Milestone 3b. Transfer Proof Circuit Implementation: will include every aspect of the circuit writing, as this entails optimization work, and would comprise 40% of the budget allocated to milestone 3. The deliverable for this milestone is a PR to the main zcash/orchard repo.
- The second part of the project, preparing for deployment, we include the review, testnet and mainnet deployment milestones, which have a less specific delivery time and require on-going work. This would include milestones number 9 and 10 (as seen in the image above), expanding on the last milestone to include fixing any vulnerabilities or bugs found in any of the processes.
In terms of the budget, we would maintain the same budget as per the original project, but dividing the payment into two different sets, as per budget outlined in the original proposal.
We truly believe that this division should be adopted by all teams applying for grants to implement on the core layer of the Zcash ecosystem.
Thank you for providing the update on the implementation milestones and the adjusted timelines for the deliverables. And thanks for communicating the breakdown of Milestone 3 into two different milestones.
We are super excited to share that we have just pushed our first PR of the implementation of the ZSA protocol. This update includes most of the ZSA protocol (see the specifics below, as posted in the PR), which includes the issuance mechanism and the transfer mechanism. It does exclude the burn mechanism and the final version of the circuit for the transfer proof.
Hence with this update, we are submitting the implementation of the issuance, corresponding to milestone #6.
You can run an end-to-end test that will generate new custom assets and will transfer them (even if the proof is not fully correct or sound yet). Give it a try and let us know how it goes!
Please leave any comments on the PR so we can track everything.
In the coming weeks we will update this PR with another commit that will include the burn mechanism, and then follow with a finished circuit.
Issuance in accordance with milestone #6 of the ZSA proposal and grant.
This PR should be reviewed as an implementation for milestone #6 of the ZSA milestone table. It should not be merged until the rest of the ZSA functionality is ready.
- Issuance data structures:
- A builder embedded as part of
verify_issue_bundle()for consensus verification.
- Extensive unit tests for issuance.
- Extensive e2e tests for zsa transfer functionality.
- value commitment changes and tests.
- builder changes for zsa.Included but not activated:
- Split note mechanism. It will be activated once the circuit is ready. This is done in order to preserve transfer functionality while the circuit is not ready.
- The burning mechanism for transfer. (in progress, part of milestone 3)
- Circuit changes to support
note_type, split notes, and all other new functionality. (in progress, part of milestone 3)
- changes to note encryption to support
note_type. Will require some changes to the