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 01:37:11 UTCEvent JSON
{
"id": "62fc6a7361c613c206685b5a082cd4a614738d84a8c244413ce2ff086b5ac5c5",
"pubkey": "2a93b5c33986cc298b87ad83cc0afd04da42277db445350a81f3d286e50a7fd3",
"created_at": 1775180231,
"kind": 1,
"tags": [
[
"file",
"examples/frost_mailbox_post.rs"
],
[
"version",
"0.2.8"
]
],
"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": "4bdcf28ed651aadb369c28221b7f6b587374e956d5e1de8f9e63e76812a04c285a1385dfbfd4f246892c795e730e7b444a257abdd753fbafe222c355991ae2e5"
}