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:
Greg Heartsfield
2022-01-01 09:08:19 -06:00
parent 620e227699
commit 1aa5a5458d
4 changed files with 29 additions and 17 deletions
+3 -3
View File
@@ -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