notecrumbs

a nostr opengraph server build on nostrdb and egui
git clone git://jb55.com/notecrumbs
Log | Files | Refs | README | LICENSE

commit 79fb35e9e376e76bdc57ee4cd78d3e4c1cc41a31
parent 5d664fbd4bf94fb2c9a20d36de08b7efc29a35ce
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 31 Dec 2024 07:30:15 -0800

trust: don't skip validation

we will be switching away from nostr-sdk, so we shouldn't do this

Diffstat:
Msrc/main.rs | 2--
Msrc/render.rs | 2+-
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -232,9 +232,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> { let listener = TcpListener::bind(addr).await?; info!("Listening on 0.0.0.0:3000"); - // Since ndk-sdk will verify for us, we don't need to do it on the db side let cfg = Config::new(); - cfg.skip_validation(true); let ndb = Ndb::new(".", &cfg).expect("ndb failed to open"); let keys = Keys::generate(); let timeout = get_env_timeout(); diff --git a/src/render.rs b/src/render.rs @@ -6,7 +6,6 @@ use egui::{ Color32, FontFamily, FontId, Mesh, Rect, RichText, Rounding, Shape, TextureHandle, Vec2, Visuals, }; -use tracing::{debug, error, warn}; use nostr::event::kind::Kind; use nostr::types::{SingleLetterTag, Timestamp}; use nostr_sdk::async_utility::futures_util::StreamExt; @@ -18,6 +17,7 @@ use nostrdb::{ }; use std::collections::{BTreeMap, BTreeSet}; use tokio::time::{timeout, Duration}; +use tracing::{debug, error, warn}; const PURPLE: Color32 = Color32::from_rgb(0xcc, 0x43, 0xc5);