isValid method
Verify if event checks such as id, signature, non-futuristic are valid Performances could be a reason to disable event checks
Implementation
bool isValid() {
String verifyId = getEventId();
if (createdAt.toString().length == 10 &&
id == verifyId &&
bip340.verify(pubkey, id, sig)) {
return true;
} else {
return false;
}
}