Secp256k1/ecdsa algorithms