pub struct SigmaCompSpec {
pub proto_name: Ident,
pub group_name: Ident,
pub vars: TaggedVarDict,
pub statements: StatementTree,
}Expand description
The SigmaCompSpec struct is the result of parsing the macro
input.
Fields§
§proto_name: IdentAn identifier for the name of the zero-knowledge protocol being defined
group_name: IdentAn identifier for the mathematical
PrimeGroup
being used (if none is specified, it is assumed there is a
default type called G in scope that implements the
PrimeGroup
trait)
vars: TaggedVarDictA TaggedVarDict mapping variable names to their types
(Scalar or Point) and tags (e.g., rand, pub, vec,
cind, const)
statements: StatementTreeA StatementTree representing the statements provided in the
macro invocation that are to be proved true in zero knowledge
Trait Implementations§
Source§impl Debug for SigmaCompSpec
impl Debug for SigmaCompSpec
Source§impl Parse for SigmaCompSpec
impl Parse for SigmaCompSpec
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for SigmaCompSpec
impl !Sync for SigmaCompSpec
impl Freeze for SigmaCompSpec
impl RefUnwindSafe for SigmaCompSpec
impl Unpin for SigmaCompSpec
impl UnsafeUnpin for SigmaCompSpec
impl UnwindSafe for SigmaCompSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more