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-02 18:48:46 UTCEvent JSON
{
"id": "5cb3ea995e4400c771f883f20ac6c31fb45d229154550c6f4310284d47b86ef9",
"pubkey": "2a93b5c33986cc298b87ad83cc0afd04da42277db445350a81f3d286e50a7fd3",
"created_at": 1775155726,
"kind": 1,
"tags": [
[
"file",
"examples/frost_mailbox_post.rs"
],
[
"version",
"0.2.2"
]
],
"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": "902c1b024d6e473d26429a9b566ca8494f71cb3180467e1a9641631944bbce75380b0dece6422ec63fbe3a4fbbb9bf91a4e60636c7ba65d49974e803f056b67c"
}