wip: return parsed cond query

This commit is contained in:
Greg Heartsfield 2022-10-15 17:15:59 -05:00
parent eea37fbf5c
commit c4fbfb689b

View File

@ -102,7 +102,8 @@ pub fn validate_delegation(
if let Ok(pubkey) = XOnlyPublicKey::from_str(delegator) { if let Ok(pubkey) = XOnlyPublicKey::from_str(delegator) {
let verify = SECP.verify_schnorr(&sig, &msg, &pubkey); let verify = SECP.verify_schnorr(&sig, &msg, &pubkey);
if verify.is_ok() { if verify.is_ok() {
Some(ConditionQuery { conditions: vec![] }) // return the parsed condition query
cond_query.parse::<ConditionQuery>().ok()
} else { } else {
None None
} }