1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 20:08:12 +00:00

refactor(crypto): remove code that is duplicated in secp256k1-zkp submodule

This commit is contained in:
Ondřej Vejpustek 2022-05-09 16:08:33 +02:00
parent 53d522a1fd
commit bdfc453245

View File

@ -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;