Skip to content

Commit

Permalink
fix: rename VanillaRO -> NativeRO
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Aug 22, 2023
1 parent 9fc2ea1 commit 2073a08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/provider/poseidon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<Scalar> ROCircuitTrait<Scalar> for PoseidonROCircuit<Scalar>
where
Scalar: PrimeField + PrimeFieldBits + Serialize + for<'de> Deserialize<'de>,
{
type VanillaRO<T: PrimeField> = PoseidonRO<Scalar, T>;
type NativeRO<T: PrimeField> = PoseidonRO<Scalar, T>;
type Constants = PoseidonConstantsCircuit<Scalar>;

/// Initialize the internal state and set the poseidon constants
Expand Down
2 changes: 1 addition & 1 deletion src/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub trait ROTrait<Base: PrimeField, Scalar> {
/// A helper trait that defines the behavior of a hash function that we use as an RO in the circuit model
pub trait ROCircuitTrait<Base: PrimeField> {
/// the vanilla alter ego of this trait - this constrains it to use the same constants
type VanillaRO<T: PrimeField>: ROTrait<Base, T, Constants = Self::Constants>;
type NativeRO<T: PrimeField>: ROTrait<Base, T, Constants = Self::Constants>;

/// A type representing constants/parameters associated with the hash function on this Base field
type Constants: Default + Clone + Send + Sync + Serialize + for<'de> Deserialize<'de>;
Expand Down

0 comments on commit 2073a08

Please sign in to comment.