If someone asks me to hit them and I do, did I commit a crime? How about if I hit myself?

Someone asks me to hit them. I comply. Did I commit a crime?

How about if someone hurts themselves intentionally when I refuse?

Isn’t that exactly what boxing is all about?

Consent can be a defense to assault. In my jurisdiction the statute is:

Recent thread: Is the consent of the victim a defense to assault? What about other crimes?