Check if a string matches NIP-19 format
static bool isNip19(String str) { return nip19regex.firstMatch(str) != null; }