Trait arrabbiata::curve::ArrabbiataCurve
source · pub trait ArrabbiataCurve: CommitmentCurve + EndoCurve {
type SpongeConstants: SpongeConstants;
const NAME: &'static str;
const SPONGE_CONSTANTS: Self::SpongeConstants;
// Required methods
fn sponge_params() -> &'static ArithmeticSpongeParams<Self::ScalarField>;
fn other_curve_sponge_params(
) -> &'static ArithmeticSpongeParams<Self::BaseField>;
fn endos() -> &'static (Self::BaseField, Self::ScalarField);
fn other_curve_endo() -> &'static Self::ScalarField;
}
Expand description
Represents additional information that a curve needs in order to be used with Arrabbiata.
Required Associated Types§
type SpongeConstants: SpongeConstants
Required Associated Constants§
const SPONGE_CONSTANTS: Self::SpongeConstants
Required Methods§
sourcefn sponge_params() -> &'static ArithmeticSpongeParams<Self::ScalarField>
fn sponge_params() -> &'static ArithmeticSpongeParams<Self::ScalarField>
Provides the sponge params to be used with this curve.
sourcefn other_curve_sponge_params(
) -> &'static ArithmeticSpongeParams<Self::BaseField>
fn other_curve_sponge_params( ) -> &'static ArithmeticSpongeParams<Self::BaseField>
Provides the sponge params to be used with the other curve.
sourcefn endos() -> &'static (Self::BaseField, Self::ScalarField)
fn endos() -> &'static (Self::BaseField, Self::ScalarField)
Provides the coefficients for the curve endomorphism, called (q,r) in some places.
sourcefn other_curve_endo() -> &'static Self::ScalarField
fn other_curve_endo() -> &'static Self::ScalarField
Provides the coefficient for the curve endomorphism over the other field, called q in some places.