pure-python ECDSA signature/verification