mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-21 01:01:52 +03:00
Complete migration to leo_typed
This commit is contained in:
parent
74b3647411
commit
f6dcd7f9c2
@ -9,7 +9,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use leo_ast::LeoAst;
|
use leo_ast::LeoAst;
|
||||||
use leo_inputs::LeoInputsParser;
|
use leo_inputs::LeoInputsParser;
|
||||||
use leo_types::{InputValue, Inputs, LeoTypedAst, Program};
|
use leo_typed::{InputValue, Inputs, LeoTypedAst, Program};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Generates R1CS constraints for a compiled Leo program.
|
//! Generates R1CS constraints for a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::CompilerError, new_scope, ConstrainedProgram, ConstrainedValue, GroupType, ImportParser};
|
use crate::{errors::CompilerError, new_scope, ConstrainedProgram, ConstrainedValue, GroupType, ImportParser};
|
||||||
use leo_types::{InputValue, Program};
|
use leo_typed::{InputValue, Program};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -5,7 +5,7 @@ use crate::{
|
|||||||
value::ConstrainedValue,
|
value::ConstrainedValue,
|
||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
use leo_types::Variable;
|
use leo_typed::Variable;
|
||||||
|
|
||||||
use snarkos_models::curves::{Field, PrimeField};
|
use snarkos_models::curves::{Field, PrimeField};
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ use crate::{
|
|||||||
GroupType,
|
GroupType,
|
||||||
ImportParser,
|
ImportParser,
|
||||||
};
|
};
|
||||||
use leo_types::Program;
|
use leo_typed::Program;
|
||||||
|
|
||||||
use snarkos_models::curves::{Field, PrimeField};
|
use snarkos_models::curves::{Field, PrimeField};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::errors::{AddressError, BooleanError, FieldError, FunctionError, GroupError, IntegerError, ValueError};
|
use crate::errors::{AddressError, BooleanError, FieldError, FunctionError, GroupError, IntegerError, ValueError};
|
||||||
use leo_types::{Error as FormattedError, Identifier, Span};
|
use leo_typed::{Error as FormattedError, Identifier, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
@ -8,7 +8,7 @@ use crate::errors::{
|
|||||||
StatementError,
|
StatementError,
|
||||||
ValueError,
|
ValueError,
|
||||||
};
|
};
|
||||||
use leo_types::{Error as FormattedError, Span};
|
use leo_typed::{Error as FormattedError, Span};
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use leo_ast::ParserError;
|
use leo_ast::ParserError;
|
||||||
use leo_types::{Error as FormattedError, Identifier, ImportSymbol, Span};
|
use leo_typed::{Error as FormattedError, Identifier, ImportSymbol, Span};
|
||||||
|
|
||||||
use std::{io, path::PathBuf};
|
use std::{io, path::PathBuf};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::errors::ExpressionError;
|
use crate::errors::ExpressionError;
|
||||||
use leo_types::{Error as FormattedError, Span};
|
use leo_typed::{Error as FormattedError, Span};
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::errors::{AddressError, BooleanError, ExpressionError, IntegerError, MacroError, ValueError};
|
use crate::errors::{AddressError, BooleanError, ExpressionError, IntegerError, MacroError, ValueError};
|
||||||
use leo_types::{Error as FormattedError, Span, Type};
|
use leo_typed::{Error as FormattedError, Span, Type};
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use leo_types::{Error as FormattedError, Span};
|
use leo_typed::{Error as FormattedError, Span};
|
||||||
|
|
||||||
use snarkos_errors::{gadgets::SynthesisError, objects::account::AccountError};
|
use snarkos_errors::{gadgets::SynthesisError, objects::account::AccountError};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use leo_types::{Error as FormattedError, Span};
|
use leo_typed::{Error as FormattedError, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use leo_types::{Error as FormattedError, Span};
|
use leo_typed::{Error as FormattedError, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use leo_types::{Error as FormattedError, Span};
|
use leo_typed::{Error as FormattedError, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use leo_gadgets::errors::SignedIntegerError;
|
use leo_gadgets::errors::SignedIntegerError;
|
||||||
use leo_types::{error::Error as FormattedError, Span};
|
use leo_typed::{error::Error as FormattedError, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::errors::{AddressError, BooleanError, FieldError, GroupError, IntegerError};
|
use crate::errors::{AddressError, BooleanError, FieldError, GroupError, IntegerError};
|
||||||
use leo_types::{Error as FormattedError, Span};
|
use leo_typed::{Error as FormattedError, Span};
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces an arithmetic `+` operator in a resolved Leo program.
|
//! Enforces an arithmetic `+` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces an arithmetic `/` operator in a resolved Leo program.
|
//! Enforces an arithmetic `/` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces an arithmetic `*` operator in a resolved Leo program.
|
//! Enforces an arithmetic `*` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces an arithmetic `**` operator in a resolved Leo program.
|
//! Enforces an arithmetic `**` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces an arithmetic `-` operator in a resolved Leo program.
|
//! Enforces an arithmetic `-` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces array access in a compiled Leo program.
|
//! Enforces array access in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Expression, RangeOrExpression, Span, Type};
|
use leo_typed::{Expression, RangeOrExpression, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -6,7 +6,7 @@ use crate::{
|
|||||||
value::ConstrainedValue,
|
value::ConstrainedValue,
|
||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
use leo_types::{Expression, Span, SpreadOrExpression, Type};
|
use leo_typed::{Expression, Span, SpreadOrExpression, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces an array index expression in a compiled Leo program.
|
//! Enforces an array index expression in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Expression, IntegerType, Span, Type};
|
use leo_typed::{Expression, IntegerType, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a binary expression in a compiled Leo program.
|
//! Enforces a binary expression in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Expression, Span, Type};
|
use leo_typed::{Expression, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces one operand in a binary expression in a compiled Leo program.
|
//! Enforces one operand in a binary expression in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Expression, Span, Type};
|
use leo_typed::{Expression, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -6,7 +6,7 @@ use crate::{
|
|||||||
value::ConstrainedValue,
|
value::ConstrainedValue,
|
||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
use leo_types::{Expression, Identifier, Span, Type};
|
use leo_typed::{Expression, Identifier, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -6,7 +6,7 @@ use crate::{
|
|||||||
value::{ConstrainedCircuitMember, ConstrainedValue},
|
value::{ConstrainedCircuitMember, ConstrainedValue},
|
||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
use leo_types::{CircuitFieldDefinition, CircuitMember, Identifier, Span};
|
use leo_typed::{CircuitFieldDefinition, CircuitMember, Identifier, Span};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a circuit static access expression in a compiled Leo program.
|
//! Enforces a circuit static access expression in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{CircuitMember, Expression, Identifier, Span, Type};
|
use leo_typed::{CircuitMember, Expression, Identifier, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a conditional expression in a compiled Leo program.
|
//! Enforces a conditional expression in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Expression, Span, Type};
|
use leo_typed::{Expression, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -12,7 +12,7 @@ use crate::{
|
|||||||
GroupType,
|
GroupType,
|
||||||
Integer,
|
Integer,
|
||||||
};
|
};
|
||||||
use leo_types::{Expression, Type};
|
use leo_typed::{Expression, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforce a function call expression in a compiled Leo program.
|
//! Enforce a function call expression in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Expression, Span, Type};
|
use leo_typed::{Expression, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -7,7 +7,7 @@ use crate::{
|
|||||||
Address,
|
Address,
|
||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
use leo_types::{Identifier, Type};
|
use leo_typed::{Identifier, Type};
|
||||||
|
|
||||||
use snarkos_models::curves::{Field, PrimeField};
|
use snarkos_models::curves::{Field, PrimeField};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a logical `&&` operator in a resolved Leo program.
|
//! Enforces a logical `&&` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
|
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a logical `!` operator in a resolved Leo program.
|
//! Enforces a logical `!` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
|
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::curves::{Field, PrimeField};
|
use snarkos_models::curves::{Field, PrimeField};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a logical `||` operator in a resolved Leo program.
|
//! Enforces a logical `||` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
|
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a relational `==` operator in a resolved Leo program.
|
//! Enforces a relational `==` operator in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_gadgets::bits::ComparatorGadget;
|
use leo_gadgets::bits::ComparatorGadget;
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_gadgets::bits::ComparatorGadget;
|
use leo_gadgets::bits::ComparatorGadget;
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_gadgets::bits::ComparatorGadget;
|
use leo_gadgets::bits::ComparatorGadget;
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
|
||||||
use leo_gadgets::bits::comparator::EvaluateLtGadget;
|
use leo_gadgets::bits::comparator::EvaluateLtGadget;
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -7,7 +7,7 @@ use crate::{
|
|||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
|
|
||||||
use leo_types::{Expression, Function, Span};
|
use leo_typed::{Expression, Function, Span};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -8,7 +8,7 @@ use crate::{
|
|||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
|
|
||||||
use leo_types::{InputValue, Span, Type};
|
use leo_typed::{InputValue, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use crate::{errors::FunctionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::FunctionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
|
|
||||||
use leo_types::{Expression, Type};
|
use leo_typed::{Expression, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -14,7 +14,7 @@ use crate::{
|
|||||||
Integer,
|
Integer,
|
||||||
};
|
};
|
||||||
|
|
||||||
use leo_types::{InputValue, Span, Type};
|
use leo_typed::{InputValue, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -8,7 +8,7 @@ use crate::{
|
|||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
|
|
||||||
use leo_types::{Expression, Function, InputValue};
|
use leo_typed::{Expression, Function, InputValue};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
|
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::errors::ImportError;
|
use crate::errors::ImportError;
|
||||||
use leo_types::Program;
|
use leo_typed::Program;
|
||||||
|
|
||||||
use std::{collections::HashMap, env::current_dir};
|
use std::{collections::HashMap, env::current_dir};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::{errors::ImportError, ImportParser};
|
use crate::{errors::ImportError, ImportParser};
|
||||||
use leo_types::{Package, PackageAccess};
|
use leo_typed::{Package, PackageAccess};
|
||||||
|
|
||||||
use std::{fs, fs::DirEntry, path::PathBuf};
|
use std::{fs, fs::DirEntry, path::PathBuf};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::{errors::ImportError, ImportParser};
|
use crate::{errors::ImportError, ImportParser};
|
||||||
use leo_ast::LeoAst;
|
use leo_ast::LeoAst;
|
||||||
use leo_types::{ImportSymbol, Program, Span};
|
use leo_typed::{ImportSymbol, Program, Span};
|
||||||
|
|
||||||
use std::{ffi::OsString, fs::DirEntry, path::PathBuf};
|
use std::{ffi::OsString, fs::DirEntry, path::PathBuf};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::{errors::ImportError, imported_symbols::ImportedSymbols, ConstrainedProgram, GroupType, ImportParser};
|
use crate::{errors::ImportError, imported_symbols::ImportedSymbols, ConstrainedProgram, GroupType, ImportParser};
|
||||||
use leo_types::Import;
|
use leo_typed::Import;
|
||||||
|
|
||||||
use snarkos_models::curves::{Field, PrimeField};
|
use snarkos_models::curves::{Field, PrimeField};
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use leo_types::{Import, ImportSymbol, Package, PackageAccess};
|
use leo_typed::{Import, ImportSymbol, Package, PackageAccess};
|
||||||
|
|
||||||
/// Stores the the package file name and imported symbol from an import statement
|
/// Stores the the package file name and imported symbol from an import statement
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::{errors::ImportError, new_scope, ConstrainedProgram, ConstrainedValue, GroupType};
|
use crate::{errors::ImportError, new_scope, ConstrainedProgram, ConstrainedValue, GroupType};
|
||||||
use leo_types::{ImportSymbol, Program};
|
use leo_typed::{ImportSymbol, Program};
|
||||||
|
|
||||||
use snarkos_models::curves::{Field, PrimeField};
|
use snarkos_models::curves::{Field, PrimeField};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Evaluates a formatted string in a compiled Leo program.
|
//! Evaluates a formatted string in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::MacroError, program::ConstrainedProgram, GroupType};
|
use crate::{errors::MacroError, program::ConstrainedProgram, GroupType};
|
||||||
use leo_types::FormattedString;
|
use leo_typed::FormattedString;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Evaluates a macro in a compiled Leo program.
|
//! Evaluates a macro in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::MacroError, program::ConstrainedProgram, GroupType};
|
use crate::{errors::MacroError, program::ConstrainedProgram, GroupType};
|
||||||
use leo_types::{FormattedMacro, MacroName};
|
use leo_typed::{FormattedMacro, MacroName};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces an assert equals statement in a compiled Leo program.
|
//! Enforces an assert equals statement in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces an array assignment statement in a compiled Leo program.
|
//! Enforces an array assignment statement in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{RangeOrExpression, Span};
|
use leo_typed::{RangeOrExpression, Span};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -7,7 +7,7 @@ use crate::{
|
|||||||
value::ConstrainedValue,
|
value::ConstrainedValue,
|
||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
use leo_types::{Assignee, Expression, Span};
|
use leo_typed::{Assignee, Expression, Span};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Resolves assignees in a compiled Leo program.
|
//! Resolves assignees in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, new_scope, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, new_scope, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Assignee, Span};
|
use leo_typed::{Assignee, Span};
|
||||||
|
|
||||||
use snarkos_models::curves::{Field, PrimeField};
|
use snarkos_models::curves::{Field, PrimeField};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a circuit field assignment statement in a compiled Leo program.
|
//! Enforces a circuit field assignment statement in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Identifier, Span};
|
use leo_typed::{Identifier, Span};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a branch of a conditional or iteration statement in a compiled Leo program.
|
//! Enforces a branch of a conditional or iteration statement in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Statement, Type};
|
use leo_typed::{Statement, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Methods to enforce constraints on statements in a compiled Leo program.
|
//! Methods to enforce constraints on statements in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{ConditionalNestedOrEndStatement, ConditionalStatement, Span, Type};
|
use leo_typed::{ConditionalNestedOrEndStatement, ConditionalStatement, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a definition statement in a compiled Leo program.
|
//! Enforces a definition statement in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, GroupType};
|
||||||
use leo_types::{Declare, Expression, Span, Variable};
|
use leo_typed::{Declare, Expression, Span, Variable};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a multiple definition statement in a compiled Leo program.
|
//! Enforces a multiple definition statement in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Expression, Span, Variable};
|
use leo_typed::{Expression, Span, Variable};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -8,7 +8,7 @@ use crate::{
|
|||||||
GroupType,
|
GroupType,
|
||||||
Integer,
|
Integer,
|
||||||
};
|
};
|
||||||
use leo_types::{Expression, Identifier, Span, Statement, Type};
|
use leo_typed::{Expression, Identifier, Span, Statement, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -6,7 +6,7 @@ use crate::{
|
|||||||
value::ConstrainedValue,
|
value::ConstrainedValue,
|
||||||
GroupType,
|
GroupType,
|
||||||
};
|
};
|
||||||
use leo_types::{Expression, Span, Type};
|
use leo_typed::{Expression, Span, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces a statement in a compiled Leo program.
|
//! Enforces a statement in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Statement, Type};
|
use leo_typed::{Statement, Type};
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, PrimeField},
|
curves::{Field, PrimeField},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::{errors::AddressError, ConstrainedValue, GroupType};
|
use crate::{errors::AddressError, ConstrainedValue, GroupType};
|
||||||
use leo_types::{InputValue, Span};
|
use leo_typed::{InputValue, Span};
|
||||||
|
|
||||||
use snarkos_dpc::base_dpc::instantiated::Components;
|
use snarkos_dpc::base_dpc::instantiated::Components;
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Methods to enforce constraints on input boolean values in a resolved Leo program.
|
//! Methods to enforce constraints on input boolean values in a resolved Leo program.
|
||||||
|
|
||||||
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
|
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{InputValue, Span};
|
use leo_typed::{InputValue, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! A data type that represents a field value
|
//! A data type that represents a field value
|
||||||
|
|
||||||
use crate::errors::FieldError;
|
use crate::errors::FieldError;
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Methods to enforce constraints on input field values in a compiled Leo program.
|
//! Methods to enforce constraints on input field values in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::FieldError, value::ConstrainedValue, FieldType, GroupType};
|
use crate::{errors::FieldError, value::ConstrainedValue, FieldType, GroupType};
|
||||||
use leo_types::{InputValue, Span};
|
use leo_typed::{InputValue, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! A data type that represents members in the group formed by the set of affine points on a curve.
|
//! A data type that represents members in the group formed by the set of affine points on a curve.
|
||||||
|
|
||||||
use crate::errors::GroupError;
|
use crate::errors::GroupError;
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
curves::{Field, One},
|
curves::{Field, One},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Methods to enforce constraints on input group values in a Leo program.
|
//! Methods to enforce constraints on input group values in a Leo program.
|
||||||
|
|
||||||
use crate::{errors::GroupError, ConstrainedValue, GroupType};
|
use crate::{errors::GroupError, ConstrainedValue, GroupType};
|
||||||
use leo_types::{InputValue, Span};
|
use leo_typed::{InputValue, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::{errors::GroupError, GroupType};
|
use crate::{errors::GroupError, GroupType};
|
||||||
use leo_types::Span;
|
use leo_typed::Span;
|
||||||
|
|
||||||
use snarkos_curves::{
|
use snarkos_curves::{
|
||||||
edwards_bls12::{EdwardsAffine, EdwardsParameters, Fq},
|
edwards_bls12::{EdwardsAffine, EdwardsParameters, Fq},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! Enforces constraints on an implicit number in a compiled Leo program.
|
//! Enforces constraints on an implicit number in a compiled Leo program.
|
||||||
|
|
||||||
use crate::{errors::ValueError, value::ConstrainedValue, GroupType};
|
use crate::{errors::ValueError, value::ConstrainedValue, GroupType};
|
||||||
use leo_types::{Span, Type};
|
use leo_typed::{Span, Type};
|
||||||
|
|
||||||
use snarkos_models::curves::{Field, PrimeField};
|
use snarkos_models::curves::{Field, PrimeField};
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ use leo_gadgets::{
|
|||||||
bits::comparator::{ComparatorGadget, EvaluateLtGadget},
|
bits::comparator::{ComparatorGadget, EvaluateLtGadget},
|
||||||
signed_integer::*,
|
signed_integer::*,
|
||||||
};
|
};
|
||||||
use leo_types::{InputValue, IntegerType, Span};
|
use leo_typed::{InputValue, IntegerType, Span};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
|
@ -10,7 +10,7 @@ use crate::{
|
|||||||
GroupType,
|
GroupType,
|
||||||
Integer,
|
Integer,
|
||||||
};
|
};
|
||||||
use leo_types::{Circuit, Function, Identifier, Span, Type};
|
use leo_typed::{Circuit, Function, Identifier, Span, Type};
|
||||||
|
|
||||||
use snarkos_errors::gadgets::SynthesisError;
|
use snarkos_errors::gadgets::SynthesisError;
|
||||||
use snarkos_models::{
|
use snarkos_models::{
|
||||||
|
@ -7,7 +7,7 @@ use crate::{
|
|||||||
EdwardsTestCompiler,
|
EdwardsTestCompiler,
|
||||||
};
|
};
|
||||||
use leo_compiler::{Address, ConstrainedValue};
|
use leo_compiler::{Address, ConstrainedValue};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_dpc::base_dpc::instantiated::Components;
|
use snarkos_dpc::base_dpc::instantiated::Components;
|
||||||
use snarkos_objects::AccountAddress;
|
use snarkos_objects::AccountAddress;
|
||||||
|
@ -12,7 +12,7 @@ use leo_compiler::{
|
|||||||
Integer,
|
Integer,
|
||||||
};
|
};
|
||||||
use leo_inputs::types::{IntegerType, U32Type};
|
use leo_inputs::types::{IntegerType, U32Type};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_models::gadgets::utilities::uint::UInt32;
|
use snarkos_models::gadgets::utilities::uint::UInt32;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ use leo_compiler::{
|
|||||||
errors::{BooleanError, CompilerError, ExpressionError, FunctionError, StatementError},
|
errors::{BooleanError, CompilerError, ExpressionError, FunctionError, StatementError},
|
||||||
ConstrainedValue,
|
ConstrainedValue,
|
||||||
};
|
};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_models::gadgets::utilities::boolean::Boolean;
|
use snarkos_models::gadgets::utilities::boolean::Boolean;
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ use leo_compiler::{
|
|||||||
ConstrainedValue,
|
ConstrainedValue,
|
||||||
Integer,
|
Integer,
|
||||||
};
|
};
|
||||||
use leo_types::{Expression, Function, Identifier, Span, Statement, Type};
|
use leo_typed::{Expression, Function, Identifier, Span, Statement, Type};
|
||||||
|
|
||||||
use snarkos_models::gadgets::utilities::uint::UInt32;
|
use snarkos_models::gadgets::utilities::uint::UInt32;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ use leo_compiler::{
|
|||||||
ConstrainedValue,
|
ConstrainedValue,
|
||||||
FieldType,
|
FieldType,
|
||||||
};
|
};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use num_bigint::BigUint;
|
use num_bigint::BigUint;
|
||||||
use rand::{Rng, SeedableRng};
|
use rand::{Rng, SeedableRng};
|
||||||
|
@ -7,7 +7,7 @@ use crate::{
|
|||||||
EdwardsTestCompiler,
|
EdwardsTestCompiler,
|
||||||
};
|
};
|
||||||
use leo_compiler::{group::targets::edwards_bls12::EdwardsGroupType, ConstrainedValue};
|
use leo_compiler::{group::targets::edwards_bls12::EdwardsGroupType, ConstrainedValue};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::{EdwardsAffine, EdwardsParameters, Fq};
|
use snarkos_curves::edwards_bls12::{EdwardsAffine, EdwardsParameters, Fq};
|
||||||
use snarkos_gadgets::curves::edwards_bls12::EdwardsBlsGadget;
|
use snarkos_gadgets::curves::edwards_bls12::EdwardsBlsGadget;
|
||||||
|
@ -10,7 +10,7 @@ use crate::{
|
|||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_gadgets::*;
|
use leo_gadgets::*;
|
||||||
use leo_inputs::types::{I128Type, IntegerType};
|
use leo_inputs::types::{I128Type, IntegerType};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
||||||
|
@ -10,7 +10,7 @@ use crate::{
|
|||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_gadgets::*;
|
use leo_gadgets::*;
|
||||||
use leo_inputs::types::{I16Type, IntegerType};
|
use leo_inputs::types::{I16Type, IntegerType};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
||||||
|
@ -10,7 +10,7 @@ use crate::{
|
|||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_gadgets::*;
|
use leo_gadgets::*;
|
||||||
use leo_inputs::types::{I32Type, IntegerType};
|
use leo_inputs::types::{I32Type, IntegerType};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
||||||
|
@ -10,7 +10,7 @@ use crate::{
|
|||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_gadgets::*;
|
use leo_gadgets::*;
|
||||||
use leo_inputs::types::{I64Type, IntegerType};
|
use leo_inputs::types::{I64Type, IntegerType};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
||||||
|
@ -10,7 +10,7 @@ use crate::{
|
|||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_gadgets::*;
|
use leo_gadgets::*;
|
||||||
use leo_inputs::types::{I8Type, IntegerType};
|
use leo_inputs::types::{I8Type, IntegerType};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};
|
||||||
|
@ -9,7 +9,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_inputs::types::{IntegerType, U128Type};
|
use leo_inputs::types::{IntegerType, U128Type};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{
|
use snarkos_models::gadgets::{
|
||||||
|
@ -9,7 +9,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_inputs::types::{IntegerType, U16Type};
|
use leo_inputs::types::{IntegerType, U16Type};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{
|
use snarkos_models::gadgets::{
|
||||||
|
@ -9,7 +9,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_inputs::types::{IntegerType, U32Type};
|
use leo_inputs::types::{IntegerType, U32Type};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{
|
use snarkos_models::gadgets::{
|
||||||
|
@ -9,7 +9,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_inputs::types::{IntegerType, U64Type};
|
use leo_inputs::types::{IntegerType, U64Type};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{
|
use snarkos_models::gadgets::{
|
||||||
|
@ -9,7 +9,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use leo_compiler::{ConstrainedValue, Integer};
|
use leo_compiler::{ConstrainedValue, Integer};
|
||||||
use leo_inputs::types::{IntegerType, U8Type};
|
use leo_inputs::types::{IntegerType, U8Type};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::{
|
use snarkos_models::gadgets::{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::{get_error, get_output, parse_program};
|
use crate::{get_error, get_output, parse_program};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_print() {
|
fn test_print() {
|
||||||
|
@ -6,7 +6,7 @@ use crate::{
|
|||||||
EdwardsTestCompiler,
|
EdwardsTestCompiler,
|
||||||
};
|
};
|
||||||
use leo_inputs::types::{IntegerType, U32Type};
|
use leo_inputs::types::{IntegerType, U32Type};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::r1cs::TestConstraintSystem;
|
use snarkos_models::gadgets::r1cs::TestConstraintSystem;
|
||||||
|
@ -3,7 +3,7 @@ use crate::{
|
|||||||
integers::u32::{output_one, output_zero},
|
integers::u32::{output_one, output_zero},
|
||||||
parse_program,
|
parse_program,
|
||||||
};
|
};
|
||||||
use leo_types::InputValue;
|
use leo_typed::InputValue;
|
||||||
|
|
||||||
use snarkos_curves::edwards_bls12::Fq;
|
use snarkos_curves::edwards_bls12::Fq;
|
||||||
use snarkos_models::gadgets::r1cs::TestConstraintSystem;
|
use snarkos_models::gadgets::r1cs::TestConstraintSystem;
|
||||||
|
Loading…
Reference in New Issue
Block a user