pub extern "C" fn atms_registration_to_avk(
    avk_ptr: *mut AvkPtr,
    registration_ptr: RegistrationPtr,
) -> i64 {
    unsafe {
        if let (Some(ref_avk), Some(ref_registration)) =
            (avk_ptr.as_mut(), registration_ptr.as_ref())
        {
            *ref_avk = Box::into_raw(Box::new(ref_registration.to_avk()));
            return 0;
        }
        NULLPOINTERERR
    }
}
/// Return an `Avk` key from the key registration. This consists of the merkle root
/// of the vector commitment, the aggregate key and the number of parties.
Return an `Avk` key from the key registration. This consists of the merkle root
of the vector commitment, the aggregate key and the number of parties.
Return an ` Avk ` key from the key registration . This consists of the merkle root of the vector commitment the aggregate key and the number of parties .
pub extern "C" fn atms_registration_to_avk(
    avk_ptr: *mut AvkPtr,
    registration_ptr: RegistrationPtr,
) -> i64 {
    unsafe {
        if let (Some(ref_avk), Some(ref_registration)) =
            (avk_ptr.as_mut(), registration_ptr.as_ref())
        {
            *ref_avk = Box::into_raw(Box::new(ref_registration.to_avk()));
            return 0;
        }
        NULLPOINTERERR
    }
}
pub extern " " fn atms_registration_to_avk ( avk_ptr : * mut AvkPtr , registration_ptr : RegistrationPtr , ) -> i64 { unsafe { if let ( Some ( ref_avk ) , Some ( ref_registration ) ) = ( avk_ptr . as_mut ( ) , registration_ptr . as_ref ( ) ) { * ref_avk = Box :: into_raw ( Box :: new ( ref_registration . to_avk ( ) ) ) ; return 0 ; } NULLPOINTERERR } }
Return an `Avk` key from the key registration.
Return an ` Avk ` key from the key registration .
avk_ptr
*mut AvkPtr
registration_ptr
RegistrationPtr