diff --git a/crypto/zkp_bip340.c b/crypto/zkp_bip340.c index 8f588f8f7..fd87086a2 100644 --- a/crypto/zkp_bip340.c +++ b/crypto/zkp_bip340.c @@ -136,10 +136,6 @@ int zkp_bip340_sign_digest(const uint8_t *private_key_bytes, } if (result == 0) { - uint8_t zero[32] = {0}; - if (!auxiliary_data) { - auxiliary_data = zero; - } if (secp256k1_schnorrsig_sign32(context_writable, signature_bytes, digest, &keypair, auxiliary_data) != 1) { result = -1;