mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-14 15:09:07 -05:00
wip: return parsed cond query
This commit is contained in:
parent
eea37fbf5c
commit
c4fbfb689b
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user