mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 06:18:07 +00:00
chore(vendor,crypto): bump version of secp256k1-zkp
This commit is contained in:
parent
4026987353
commit
dbfc7d241f
@ -120,7 +120,6 @@ if FEATURE_FLAGS["SECP256K1_ZKP"]:
|
||||
'USE_SECP256K1_ZKP',
|
||||
'USE_SECP256K1_ZKP_ECDSA',
|
||||
('SECP256K1_CONTEXT_SIZE', '8416'),
|
||||
'SECP256K1_BUILD',
|
||||
'USE_ASM_ARM',
|
||||
'USE_NUM_NONE',
|
||||
'USE_FIELD_INV_BUILTIN',
|
||||
|
@ -118,7 +118,6 @@ if FEATURE_FLAGS["SECP256K1_ZKP"]:
|
||||
'USE_SECP256K1_ZKP',
|
||||
'USE_SECP256K1_ZKP_ECDSA',
|
||||
('SECP256K1_CONTEXT_SIZE', '8416'),
|
||||
'SECP256K1_BUILD',
|
||||
'USE_NUM_NONE',
|
||||
'USE_FIELD_INV_BUILTIN',
|
||||
'USE_SCALAR_INV_BUILTIN',
|
||||
|
@ -112,7 +112,7 @@ int zkp_bip340_sign_digest(const uint8_t *private_key_bytes,
|
||||
if (context_writable) {
|
||||
secp256k1_context_writable_randomize(context_writable);
|
||||
if (secp256k1_schnorrsig_sign(context_writable, signature_bytes, digest,
|
||||
&keypair, NULL, auxiliary_data) != 1) {
|
||||
&keypair, auxiliary_data) != 1) {
|
||||
result = -1;
|
||||
}
|
||||
zkp_context_release_writable();
|
||||
@ -148,7 +148,7 @@ int zkp_bip340_verify_digest(const uint8_t *public_key_bytes,
|
||||
|
||||
if (result == 0) {
|
||||
if (secp256k1_schnorrsig_verify(context_read_only, signature_bytes, digest,
|
||||
&xonly_pubkey) != 1) {
|
||||
32, &xonly_pubkey) != 1) {
|
||||
result = 5;
|
||||
}
|
||||
}
|
||||
|
2
vendor/secp256k1-zkp
vendored
2
vendor/secp256k1-zkp
vendored
@ -1 +1 @@
|
||||
Subproject commit fac477f822a9d493b0d23cc604d741b24a0c9719
|
||||
Subproject commit 6b8733577e4a8e1a4f77aaa48691f188b0c42f5c
|
Loading…
Reference in New Issue
Block a user