emeceve / loquaz

A simple desktop app for encrypted direct messages on Nostr protocol
MIT License
36 stars 8 forks source link

move any schnorr logic into nostr-rs #9

Open futurepaul opened 2 years ago

futurepaul commented 2 years ago

I see there's a few places where we're using types from secp256k1. that should probably be re-exported from nostr-rs. ideally an "application author" doesn't have to think about that stuff.

there might be places where the whole schnorr logic probably belongs in nostr-rs, like peer_pk = PublicKey::from_str(ev.tags[0].content()).unwrap(); feels like nostr-rs's job

emeceve commented 2 years ago

I would suggest re-export secp256k1 in first place but I think the Keys struct can be used instead