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:50:17 UTCEvent JSON
{
"id": "33256372de140b5fa31ed374378260c668497dc0e893355b6d169a828c936a53",
"pubkey": "2a93b5c33986cc298b87ad83cc0afd04da42277db445350a81f3d286e50a7fd3",
"created_at": 1775155817,
"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": "d22cf6487924fa75da64e7ca61c81279ee1169095068b27e1848ae3eea50bb0f00a76cb5731b4a15b9d85321cd0e5058d5f04c3e310dccf448b19bee4e05491b"
}