From bdfc453245c33101828122f5695ea0d9a1c9ca71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Vejpustek?= Date: Mon, 9 May 2022 16:08:33 +0200 Subject: [PATCH] refactor(crypto): remove code that is duplicated in secp256k1-zkp submodule --- crypto/zkp_bip340.c | 4 ---- 1 file changed, 4 deletions(-) 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;