Re-enable joinsplit and sapling spend auth verification
This commit is contained in:
parent
f8dc989e99
commit
e4f58f018a
|
@ -178,11 +178,10 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: rework this code #1377
|
let shielded_sighash = tx.sighash(
|
||||||
let sighash = tx.sighash(
|
|
||||||
upgrade,
|
upgrade,
|
||||||
HashType::ALL, // TODO: check these
|
HashType::ALL,
|
||||||
None, // TODO: check these
|
None,
|
||||||
);
|
);
|
||||||
|
|
||||||
if let Some(joinsplit_data) = joinsplit_data {
|
if let Some(joinsplit_data) = joinsplit_data {
|
||||||
|
@ -192,9 +191,7 @@ where
|
||||||
// correctly.
|
// correctly.
|
||||||
|
|
||||||
// Then, pass those items to self.joinsplit to verify them.
|
// Then, pass those items to self.joinsplit to verify them.
|
||||||
|
check::validate_joinsplit_sig(joinsplit_data, shielded_sighash.as_bytes())?;
|
||||||
// Ignore pending sighash check #1377
|
|
||||||
let _ = check::validate_joinsplit_sig(joinsplit_data, sighash.as_bytes());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(shielded_data) = shielded_data {
|
if let Some(shielded_data) = shielded_data {
|
||||||
|
@ -233,13 +230,12 @@ where
|
||||||
// description while adding the resulting future to
|
// description while adding the resulting future to
|
||||||
// our collection of async checks that (at a
|
// our collection of async checks that (at a
|
||||||
// minimum) must pass for the transaction to verify.
|
// minimum) must pass for the transaction to verify.
|
||||||
let _rsp = redjubjub_verifier
|
let rsp = redjubjub_verifier
|
||||||
.ready_and()
|
.ready_and()
|
||||||
.await?
|
.await?
|
||||||
.call((spend.rk, spend.spend_auth_sig, &sighash).into());
|
.call((spend.rk, spend.spend_auth_sig, &shielded_sighash).into());
|
||||||
|
|
||||||
// Disable pending sighash check #1377
|
async_checks.push(rsp.boxed());
|
||||||
// async_checks.push(rsp.boxed());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for output in shielded_data.outputs() {
|
for output in shielded_data.outputs() {
|
||||||
|
|
Loading…
Reference in New Issue