INNER CODE UNIT · Rust

from

monero-project/monero · src/fcmp_pp/fcmp_pp_rust/src/lib.rs:172

    fn from(slice: &Slice<T>) -> Self {
        unsafe { slice_from_raw_parts_0able(slice.buf, slice.len) }
    }
}

#[no_mangle]
pub extern "C" fn helios_zero_scalar() -> HeliosScalar {
    HeliosScalar::ZERO
}

#[no_mangle]
pub extern "C" fn selene_zero_scalar() -> SeleneScalar {
    SeleneScalar::ZERO
}

/// # Safety
///
/// This function expects a valid pointer to a HeliosPoint passed in hash_out.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…