secp256k1 signing api drift fixes