examples/frost_mailbox_post.rs on Nostr: #[cfg(feature = "nostr")] fn main() -> Result<(), Box<dyn std::error::Error>> { ...
#[cfg(feature = "nostr")]
fn main() -> Result<(), Box<dyn std::error::Error>> {
get_file_hash_core::frost_mailbox_logic::simulate_frost_mailbox_post_signer()
}
#[cfg(not(feature = "nostr"))]
fn main() {
println!("This example requires the 'nostr' feature. Please run with: cargo run --example frost_mailbox_post --features nostr");
}
Published at
2026-04-03 02:18:59 UTCEvent JSON
{
"id": "2fde574b502161b9b3053d0a0d7cdb1c70711f423aed76d9e192539c61d24a3c",
"pubkey": "2a93b5c33986cc298b87ad83cc0afd04da42277db445350a81f3d286e50a7fd3",
"created_at": 1775182739,
"kind": 1,
"tags": [
[
"file",
"examples/frost_mailbox_post.rs"
],
[
"version",
"0.2.9"
]
],
"content": "#[cfg(feature = \"nostr\")]\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n get_file_hash_core::frost_mailbox_logic::simulate_frost_mailbox_post_signer()\n}\n#[cfg(not(feature = \"nostr\"))]\nfn main() {\n println!(\"This example requires the 'nostr' feature. Please run with: cargo run --example frost_mailbox_post --features nostr\");\n}\n",
"sig": "1656fe6e2215e2ab281670ebb1bf5443e5d79513dda9cbfd639bb1f3097ef5121707782e3c9032c135873755e38f7e5d0176aa8e712fe3324bd3b2aac6ca8736"
}