improvement: event signature validation is 100x faster
Switched to latest (git) release of secp256k1, which has more efficient verification-only context for Schnorr. Switched to single pre-instantiated instance of the verifier.
This commit is contained in:
+3
-3
@@ -98,9 +98,9 @@ async fn handle_web_request(
|
||||
}
|
||||
("/", false) => {
|
||||
// handle request at root with no upgrade header
|
||||
Ok(Response::new(Body::from(format!(
|
||||
"This is a Nostr relay.\n"
|
||||
))))
|
||||
Ok(Response::new(Body::from(
|
||||
"This is a Nostr relay.\n".to_string(),
|
||||
)))
|
||||
}
|
||||
(_, _) => {
|
||||
//handle any other url
|
||||
|
||||
Reference in New Issue
Block a user