schnorr signature & some changes