pub fn verify_script(
    script: &CompiledScript,
    check_signature: FnCheckScriptSignature,
) -> VMResult<()> {
    if script.version >= VERSION_5 {
        return Ok(());
    }

    let resolver = &BinaryIndexedView::Script(script);
    let parameters = script.parameters;
    let return_ = None;
    verify_main_signature_impl(
        resolver,
        Visibility::Script,
        parameters,
        return_,
        check_signature,
    )
    .map_err(|e| e.finish(Location::Script))
}
/// This function checks the extra requirements on the signature of the main function of a script.
This function checks the extra requirements on the signature of the main function of a script.
This function checks the extra requirements on the signature of the main function of a script .
pub fn verify_script(
    script: &CompiledScript,
    check_signature: FnCheckScriptSignature,
) -> VMResult<()> {
    if script.version >= VERSION_5 {
        return Ok(());
    }
    let resolver = &BinaryIndexedView::Script(script);
    let parameters = script.parameters;
    let return_ = None;
    verify_main_signature_impl(
        resolver,
        Visibility::Script,
        parameters,
        return_,
        check_signature,
    )
    .map_err(|e| e.finish(Location::Script))
}
pub fn verify_script ( script : & CompiledScript , check_signature : FnCheckScriptSignature , ) -> VMResult < ( ) > { if script . version >= VERSION_5 { return Ok ( ( ) ) ; } let resolver = & BinaryIndexedView :: Script ( script ) ; let parameters = script . parameters ; let return_ = None ; verify_main_signature_impl ( resolver , Visibility :: Script , parameters , return_ , check_signature , ) . map_err ( | e | e . finish ( Location :: Script ) ) }
This function checks the extra requirements on the signature of the main function of a script.
This function checks the extra requirements on the signature of the main function of a script .
script
&CompiledScript
check_signature
FnCheckScriptSignature