fn try_from(bytes: [u8; 32]) -> Result<Self, Self::Error> {
        let affine_point = jubjub::AffinePoint::from_bytes(bytes).unwrap();
        // Check if it's identity or has prime order (i.e. is in the prime-order subgroup).
        if affine_point.is_torsion_free().into() {
            Ok(Self(affine_point))
        } else {
            Err("Invalid jubjub::AffinePoint value for Sapling TransmissionKey")
        }
    }
/// Attempts to interpret a byte representation of an affine Jubjub point, failing if the
/// element is not on the curve, non-canonical, or not in the prime-order subgroup.
///
/// https://github.com/zkcrypto/jubjub/blob/master/src/lib.rs#L411
/// https://zips.z.cash/zip-0216
Attempts to interpret a byte representation of an affine Jubjub point, failing if the
element is not on the curve, non-canonical, or not in the prime-order subgroup.


Attempts to interpret a byte representation of an affine Jubjub point failing if the element is not on the curve non - canonical or not in the prime - order subgroup .
fn try_from(bytes: [u8; 32]) -> Result<Self, Self::Error> {
        let affine_point = jubjub::AffinePoint::from_bytes(bytes).unwrap();
        // Check if it's identity or has prime order (i.e. is in the prime-order subgroup).
        if affine_point.is_torsion_free().into() {
            Ok(Self(affine_point))
        } else {
            Err("Invalid jubjub::AffinePoint value for Sapling TransmissionKey")
        }
    }
fn try_from ( bytes : [ u8 ; 32 ] ) -> Result < Self , Self :: Error > { let affine_point = jubjub :: AffinePoint :: from_bytes ( bytes ) . unwrap ( ) ; // Check if it's identity or has prime order (i.e. is in the prime-order subgroup). if affine_point . is_torsion_free ( ) . into ( ) { Ok ( Self ( affine_point ) ) } else { Err ( " " ) } }
Attempts to interpret a byte representation of an affine Jubjub point, failing if the
element is not on the curve, non-canonical, or not in the prime-order subgroup.
Attempts to interpret a byte representation of an affine Jubjub point failing if the element is not on the curve non - canonical or not in the prime - order subgroup .
bytes
[u8; 32]