[][src]Function zcash_script::zcash_script_verify

pub unsafe extern "C" fn zcash_script_verify(
    scriptPubKey: *const c_uchar,
    scriptPubKeyLen: c_uint,
    amount: i64,
    txTo: *const c_uchar,
    txToLen: c_uint,
    nIn: c_uint,
    flags: c_uint,
    consensusBranchId: u32,
    err: *mut zcash_script_error
) -> c_int

Returns 1 if the input nIn of the serialized transaction pointed to by txTo correctly spends the scriptPubKey pointed to by scriptPubKey under the additional constraints specified by flags. If not NULL, err will contain an error/success code for the operation