feat: parse subscriptions from websockets

Parses subscription requests (REQ, but not CLOSE).  Performs no
subscription state management yet.
This commit is contained in:
Greg Heartsfield
2021-12-05 17:15:50 -06:00
parent 92e9a5e639
commit e7d0ab1aca
5 changed files with 335 additions and 8 deletions
+1 -4
View File
@@ -79,10 +79,7 @@ impl Event {
let pubkey = schnorrsig::PublicKey::from_str(&self.pubkey).unwrap();
let verify = secp.schnorrsig_verify(&sig, &message, &pubkey);
match verify {
Ok(()) => {
info!("verified event");
true
}
Ok(()) => true,
_ => false,
}
}