Cannot verify [Coll[SigmaProp]] Type

I've been toying with the SigmaProp Type, and for some reason I'm able to verify an outsourced SigmaProp but not a Coll[SigmaProp] for example: the following script compiles:
{
getVar[SigmaProp](0).get
}
{
getVar[SigmaProp](0).get
}
but not
{
getVar[Coll[SigmaProp]](0).get.forall{(sig: SigmaProp) => sig.isProven}
}
{
getVar[Coll[SigmaProp]](0).get.forall{(sig: SigmaProp) => sig.isProven}
}
it returns the error Cannot find method allZK in object Global$(221), any ideas?
4 Replies
Quwin
QuwinOP•4y ago
Also, I'd like Appkit to support custom SigmaProp creation at some point, but I can do work on that myself
Cheese Enthusiast
Cheese Enthusiast•4y ago
Instead of forall and isProven, you could try just using fold and the && operation. I dont see isProven being used too often so maybe thats the source of the issue
Quwin
QuwinOP•4y ago
looks like fold worked, thanks for the suggestion! Might have to look into isProven to see what the issue is later But also using atLeast(sigmaProps.size, sigmaProps) worked too and is also probably more efficient, idk how I missed that lmao my bad
Cheese Enthusiast
Cheese Enthusiast•4y ago
😆 I forgot about that method too

Did you find this page helpful?