pub fn g1_to_bytes(g1: &G1) -> [u8; G1_SIZE] {
    let mut bytes = [0u8; G1_SIZE];
    bytes.copy_from_slice(g1.into_affine().into_compressed().as_ref());
    bytes
}
/// Encode BLS12-381 G1 point to bytes
///
/// # Arguments
/// * `g1` a point
/// # Returns
/// The encoded point in compressed form
Encode BLS12-381 G1 point to bytes
Encode BLS12 - 381 G1 point to bytes
pub fn g1_to_bytes(g1: &G1) -> [u8; G1_SIZE] {
    let mut bytes = [0u8; G1_SIZE];
    bytes.copy_from_slice(g1.into_affine().into_compressed().as_ref());
    bytes
}
pub fn g1_to_bytes ( g1 : & G1 ) -> [ u8 ; G1_SIZE ] { let mut bytes = [ 0u8 ; G1_SIZE ] ; bytes . copy_from_slice ( g1 . into_affine ( ) . into_compressed ( ) . as_ref ( ) ) ; bytes }
Encode BLS12-381 G1 point to bytes
Encode BLS12 - 381 G1 point to bytes
g1
&G1
The encoded point in compressed form
The encoded point in compressed form
g1
&G1