npubs should be validated #308

Open
opened 2025-01-30 11:39:20 +00:00 by b · 0 comments
Owner

If the counterparty string starts with npub1 then we should validate the npub

We had a situation today where a user was unable to add a counterparty, and did not realise his npub was invalid. Nosta Me manages this ok:

https://nosta.me/npub1qnkhmdy37hltzfslu6m3vfylymhwyumgjmasnrc0qqq2kfnrqrxlsxr6ny8

ALSO - we had an issue with an npub not working because it had a leading space

both leading and trailing blanks should be automatically removed (but keep the ability to type them, eg "Tom Jones")

If the counterparty string starts with `npub1` then we should validate the npub We had a situation today where a user was unable to add a counterparty, and did not realise his npub was invalid. Nosta Me manages this ok: https://nosta.me/npub1qnkhmdy37hltzfslu6m3vfylymhwyumgjmasnrc0qqq2kfnrqrxlsxr6ny8 ALSO - we had an issue with an npub not working because it had a leading space both leading and trailing blanks should be automatically removed (but keep the ability to type them, eg "Tom Jones")
Sign in to join this conversation.
No description provided.