1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 23:40:58 +00:00

fix(core): Fix bip340 module build.

This commit is contained in:
Andrew Kozlik 2021-10-25 20:09:25 +02:00 committed by Andrew Kozlik
parent 59c0f4383d
commit ae41f7dec8
2 changed files with 3 additions and 1 deletions

View File

@ -118,6 +118,7 @@ if FEATURE_FLAGS["SECP256K1_ZKP"]:
CPPDEFINES_MOD += [
'USE_SECP256K1_ZKP',
'USE_SECP256K1_ZKP_ECDSA',
'USE_SECP256K1_ZKP_BIP340',
('SECP256K1_CONTEXT_SIZE', '8416'),
'USE_NUM_NONE',
'USE_FIELD_INV_BUILTIN',

View File

@ -19,6 +19,7 @@
#include "py/objstr.h"
#include "rand.h"
#include "zkp_bip340.h"
/// package: trezorcrypto.bip340
@ -237,7 +238,7 @@ STATIC const mp_rom_map_elem_t mod_trezorcrypt_bip340_globals_table[] = {
STATIC MP_DEFINE_CONST_DICT(mod_trezorcrypt_bip340_globals,
mod_trezorcrypt_bip340_globals_table);
STATIC const mp_obj_module_t mod_trezorcrypt_bip340_module = {
STATIC const mp_obj_module_t mod_trezorcrypto_bip340_module = {
.base = {&mp_type_module},
.globals = (mp_obj_dict_t *)&mod_trezorcrypt_bip340_globals,
};