Using a bqTest in solve mode
First, we will need to define a new solving mode bqTest. We can do so simply by running:
The initialization is the same as in reading mode, except for the additional openAnswerHashes parameter, used for both open answer and mixed tests.
If left undefined, openAnswerHashes will be retreived from the blockchain. For this, it must have been defined prior by the credential issuer verifying their test, else the test will not be solvable. Multiple choice tests need not define this parameter.
As the protocol still lacks an official deployed contract, this test creator address is left for the user to define after they themselves deploy it. In future versions this will be given a default value deployed on a specified chain.
When defined on solve mode, a bqTest object can be used to
For each of these sections we will make use of the testnet deployed TestCreator.sol to provide implementation examples, and thus we define:
We provide no openAnswerHashes as the test has already been verified on-chain. You will not need to define this data as the bqTest object will retrieve it directly from the blockchain.
Last updated