// Copyright (c) 2022-2023 Yuki Kishimoto // Copyright (c) 2023-2024 Rust Nostr Developers // Distributed under the MIT software license use nostr::prelude::*; fn main() -> Result<()> { let keys = Keys::parse("nsec1ufnus6pju578ste3v90xd5m2decpuzpql2295m3sknqcjzyys9ls0qlc85")?; let event_id = EventId::from_hex("7469af3be8c8e06e1b50ef1caceba30392ddc0b6614507398b7d7daa4c218e96")?; let event: Event = EventBuilder::delete_with_reason(vec![event_id], "these posts were published by accident") .sign_with_keys(&keys)?; println!("{}", event.as_json()); Ok(()) }