Trait snarkvm_circuit::environment::prelude::FromGroup
source · pub trait FromGroup {
type Group: GroupTrait<Self::Scalar>;
type Scalar: ScalarTrait;
// Required method
fn from_group(group: Self::Group) -> Self;
}
Expand description
Unary operator for converting from an affine group element.
Required Associated Types§
type Group: GroupTrait<Self::Scalar>
type Scalar: ScalarTrait
Required Methods§
sourcefn from_group(group: Self::Group) -> Self
fn from_group(group: Self::Group) -> Self
Casts a circuit from an affine group element.