1

everything is in the title :

are the ERC721 smart contracts compatible with Zk-SNARKs?

since Zk-SNARKs is being used "grosso modo" to make transactions "private", can we use it with the ERC721 type of smart contracts to create a non fungible private transactions/token? or should we wait until the erc721 get normalized and Zk-SNARKs gets implemented?

My understanding is that current token contracts do not make use of zkSNARKs to hide balances or sender/receiver information. Contracts wishing to do so need to have zkSNARKs functionality explicitly coded into them for them to hide things.

Right now zkSNARKs code is not easy to write, nor is it easy for users to interact with. It is also very expensive. I think these are the reasons why it is currently possible, but not done, at the moment.

Can someone confirm all this?

1 Answer 1

1

since Zk-SNARKs is being used "grosso modo" to make transactions "private", can we use it with the ERC721 type of smart contracts to create a non fungible private transactions/token? or should we wait until the erc721 get normalized and Zk-SNARKs gets implemented?

Yes you can hide the owner of a ERC721 and probably also the transfers.

My understanding is that current token contracts do not make use of zkSNARKs to hide balances or sender/receiver information. Contracts wishing to do so need to have zkSNARKs functionality explicitly coded into them for them to hide things.

No you can build an ERC20 mixer that can be used to mix tokens or implement anon transactions and hide balances.

Right now zkSNARKs code is not easy to write, nor is it easy for users to interact with. It is also very expensive. I think these are the reasons why it is currently possible, but not done, at the moment.

Yes, Yes, Its very expensive in terms of gas costing 1/2 a block. This should come down soon by a factor of ~20. Also its very cutting edge so it takes time for people to learn it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.