Yes. Zap is easy to implement…!

@jb55 I am having issue with seeing the zap on Damus. It is correctly showing up on snort.social Here’s the 9735 event I think the sha256 description is not matching…!

https://nosbin.com/4e8654c27e25a5293ca200d464f110e0936983183d78f590c5c0f4ca24690483

snort.social success screenshot:

Reply to this note

Please Login to reply.

Discussion

damus will reject it if the sha2(description) does not match the description hash

understand. Are you converting to hex?

this is what I am doing.. Can you give me the line of code you are using before generating invoice in your CLN?

description_hash = Buffer.from(crypto.createHash('sha256').update(req.query.nostr).toString('hex'), 'hex')

CLN doesn't support description hash, you have to use the whole unhashed_desceiption.

See github.com/lnbits/lnbits/wallets/can.py as an example 🤙

cln.py damn

Ok. Let me look into. Can you share GitHub url for cln.py?