Under the new Israeli law, Palestinians convicted of deadly attacks will receive the death penalty by hanging.