plugin-cln-zapper: Error while decoding zap (likely just not a zap invoice): invalid signature
Discussion
Going to have to look into this further. But my guess is it's because some of the relays have a trailing /. That's lost when serializing to a rust url type. Will have to figure out how to handle that. Would have been introduced here. https://github.com/thesimplekid/cln-zapper-rs/commit/281bc4321b38af99e43161a99422c634f433490b
nostr.mutinywallet.com has
Just do the verification on a simple string to json object without fancy url-types. you can do that after the verification.
I thought rust types were supposed to be helpful lol. Pushed that for now. https://github.com/thesimplekid/cln-zapper-rs
plugin-cln-zapper: Event { id: EventId(0x6e4e08b5e8dad1612b6d62b336027b850ef76bd6518b426f5452ba8a1f5c7324), pubkey: XOnlyPublicKey(bbd657fb095b4cee0d2998362332ac1ff4965f5ef61d577b7cc2deef1be8bb1a96c072d0561ded7178b1e3499be2fe14463747e408e5a72a21811bdf4ad787e1), created_at: Timestamp(1680560994), kind: ZapRequest, tags: [Event(EventId(0x158ffff18da26ade7b8c23a413750d65624322a3ab5f841bd2fd9c8358abe277), None, None), PubKey(XOnlyPublicKey(989fdfa258bab79ab1990cf37238c71013416d2dcf6b5e61b2f0cec486e93630e8b460e75e7683780f2219b1622f13d1a68545ae0e96782d5232426237dab646), None), Relays([\"wss://relay.damus.io\", \"wss://eden.nostr.land\", \"wss://nos.lol\", \"wss://nos.lol/\", \"wss://brb.io\", \"wss://nostrafrica.pcdkd.fyi\", \"wss://relay.current.fyi\", \"wss://nostr.mutinywallet.com/\", \"wss://relay.damus.io/\", \"wss://adult.18plus.social/\"])], content: \"\", sig: Signature(5a0ffead2c9e6ce6549acd0221872c600c55b19bc0c6bf9e61e82e8ce552d684e51ff7a24f2c21d2fe9fdbd8bf4ec1e152584a04b69fac6d6ec0c5254a818c28) }
If you got that then its verifying i belive, is it working? I do see 23 sats on this post but not sure if youre using youre other zapper. Never seen that TLS error before
yes, it works. but I think because you commented out the verification.
No, I realized Event from json does verification so dont need to call it manually. https://docs.rs/nostr/0.20.0/src/nostr/event/mod.rs.html#94-101
also got this somewhere at start: **BROKEN** plugin-cln-zapper: TLS alert received: AlertMessagePayload {\n level: Fatal,\n description: InternalError,\n}