cairo_native_runtime

Function cairo_native__libfunc__pedersen

Source
#[no_mangle]
pub unsafe extern "C" fn cairo_native__libfunc__pedersen(
    dst: &mut [u8; 32],
    lhs: &[u8; 32],
    rhs: &[u8; 32],
)
Expand description

Compute pedersen(lhs, rhs) and store it into dst.

All its operands need the values in big endian.

§Panics

This function will panic if either operand is out of range for a felt.

§Safety

This function is intended to be called from MLIR, deals with pointers, and is therefore definitely unsafe to use manually.