Comments (6)
zkopru/packages/contracts/contracts/ZkOptimisticRollUp.sol
Lines 34 to 52 in cda87e4
@weijiekoh Line 44, it seems it's already using VerifyingKey struct. Would you please check this?
from zkopru.
Ah, I meant to suggest:
function registerVk(
uint8 numOfInputs,
uint8 numOfOutputs,
SnarksVerifier.VerifyingKey memory vk
) public onlySetupWizard {
from zkopru.
Thank you Weijie, However, only internal function supports "struct" as its parameter. Is this changed?
from zkopru.
Hmm, I managed to write public functions where a parameter is a struct in Solidity 0.5.0. e.g.: https://github.com/appliedzkp/maci/blob/master/contracts/sol/MACI.sol#L256
function signUp(
PubKey memory _userPubKey,
bytes memory _signUpGatekeeperData,
bytes memory _initialVoiceCreditProxyData
)
from zkopru.
@weijiekoh
Oh I got it. I just thought that we should avoid using experimental pragma but didn't know that the solidity 0.6,x document is saying ABIEncoderV2 is now considered as a non-experimental.
The new ABI encoder is able to encode and decode arbitrarily nested arrays and structs. It might produce less optimal code and has not received as much testing as the old encoder, but is considered non-experimental as of Solidity 0.6.0. You still have to explicitly activate it using pragma experimental ABIEncoderV2; - we kept the same pragma, even though it is not considered experimental anymore.
Will update it ;)
from zkopru.
0b75d45 closes this issue
from zkopru.
Related Issues (20)
- Light node research
- `yarn test` fails with compiling Tester contracts HOT 8
- Synchronizer error handling HOT 1
- Coordinator error handling HOT 5
- Support typed transaction on EIP-1559
- Validator error handling HOT 1
- Tx size calculator mismatch for memoV2
- Auction bid amount always same
- A limit of mass deposits in a single Propose transaction HOT 1
- block-processor worker not stop while syncing
- replace hardhat instead of ganache-cli on docker images
- Error handling for missing deposit proposal
- failed to build docker image on M1 chip HOT 2
- Build errors in local environment
- Core - fix deploy script on refactor/hardhat
- [13pt] Zkopru - refine TxBuilder.build() and add more test cases HOT 1
- Core - local dev mode in zkopru client for web wallet
- Account - ZkAccount not keep L1 private key and replaced by ethers.Wallet HOT 1
- [13pt] Cli/Web Wallet - can't sync with other wallet
- [13pt] Core - Merge Pull Requests on `refactor/hardhat` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zkopru.