Skip to content

Commit

Permalink
refactor(crypto): remove code that is duplicated in secp256k1-zkp sub…
Browse files Browse the repository at this point in the history
…module
  • Loading branch information
onvej-sl committed May 16, 2022
1 parent 53d522a commit bdfc453
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crypto/zkp_bip340.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bdfc453

Please sign in to comment.