Validates transaction identifier
static bool isValidIdentifier(String identifier) => identifier.isNotEmpty && identifier.length <= 50 && RegExp(r'^[a-zA-Z0-9_-]+$').hasMatch(identifier);