snarkvm_console_program

Function compute_function_id

Source
pub fn compute_function_id<N: Network>(
    network_id: &U16<N>,
    program_id: &ProgramID<N>,
    function_name: &Identifier<N>,
) -> Result<Field<N>>
Expand description

Compute the function ID as Hash(network_id, program_id.len(), program_id, function_name.len(), function_name).