I have a method that checks the signature of a request is valid.
The method returns a boolean:
_ true: valid signature
_ false: signature is not valid
I am not sure about the best name for it (maybe also because I am not an English native speaker).
I am not sure among:
_ checkSignature
_ isSignatureValid
Which one do you think is better and why or maybe you have a better suggestion.
Thanks,
Dan
isSignatureValid( … ). It tells you what the method is going to return, which is nice. Also, it doesn’t make a promise one way or another as far as caching goes (checkSignature implies to me that you will do all the math to check the signature when I call it, and you might not need to repeat all that work).