#Can we have re-usable proofs to be sent as txns?

7 messages · Page 1 of 1 (latest)

topaz grotto
#

Hey team,
I have some static state variables(won't be changed anywhere through the methods) in a smart contract and the only variable states I have, I have shifted them over to the OffchainState, apart from settling the offchainState, is it possible to have pre-compile method execution proofs of say a fixed set of values as param? What I mean is : My function takes in 2 public variables so If I have the set of proofs prior compiled for a set of those values say the combination [1,10], [1,1000], [10,100] can I hypothetically just ask the user to sign the proofs and send them?
Note : The offchainState is updated within the methods.

If not are there any optimization techniques apart from zkCloudWorker/Caching that I can use to make the sending of txns on-chain even faster? Thank you. Appreciate any responses :)

worn heath
#

Where are those proofs needed?

topaz grotto
#

To be sent as txns on chain

worn heath
#

Are the transactions always the same or different every time? If the latter, then proofs can't be reused

topaz grotto
#

Within the method execution : Offchain state gets updates, the state vars dont

worn heath
#

got it, but then the offchain state updates are sent as actions to the account, so the proof still depends on the particular offchain state updates

topaz grotto
#

ah okay, thanks