Skip to content

Commit d8c549c

Browse files
authored
Merge pull request #140 from Zondax/dev
New Release
2 parents b8fa48a + c7b1be0 commit d8c549c

File tree

348 files changed

+15
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

348 files changed

+15
-6
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
make test_all
124124
- name: Upload Snapshots (only failure)
125125
if: ${{ failure() }}
126-
uses: actions/upload-artifact@v3
126+
uses: actions/upload-artifact@v4
127127
with:
128128
name: snapshots-tmp
129129
path: tests_zemu/snapshots-tmp/

app/Makefile.version

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is the major version
22
APPVERSION_M=4
33
# This is the minor version
4-
APPVERSION_N=2
4+
APPVERSION_N=3
55
# This is the patch version
6-
APPVERSION_P=5
6+
APPVERSION_P=1

app/rust/src/sapling.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::bolos::blake2b::blake2b32_with_personalization;
22
use crate::bolos::jubjub::scalarmult_spending_base;
3+
use crate::bolos::c_zemu_log_stack;
34
use crate::constants::PROVING_KEY_BASE;
45
use crate::cryptoops::niels_multbits;
56
use crate::cryptoops::{bytes_to_extended, extended_to_bytes, mul_by_cofactor};
@@ -23,9 +24,11 @@ pub fn sapling_nsk_to_nk(nsk: &NskBytes) -> NkBytes {
2324

2425
#[inline(never)]
2526
pub fn sapling_asknsk_to_ivk(ask: &AskBytes, nsk: &NskBytes) -> IvkBytes {
27+
crate::bolos::heartbeat();
2628
let ak = sapling_ask_to_ak(ask);
29+
crate::bolos::heartbeat();
2730
let nk = sapling_nsk_to_nk(nsk);
28-
31+
crate::bolos::heartbeat();
2932
let h = Blake2sParams::new()
3033
.hash_length(32)
3134
.personal(CRH_IVK_PERSONALIZATION)

app/rust/src/zip32.rs

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use byteorder::{ByteOrder, LittleEndian};
55
use jubjub::{AffinePoint, ExtendedPoint, Fr};
66
use log::debug;
77

8+
use crate::bolos::c_zemu_log_stack;
89
use crate::bolos::aes::AesBOLOS;
910
use crate::bolos::blake2b;
1011
use crate::bolos::blake2b::{
@@ -313,14 +314,18 @@ fn zip32_sapling_derive_child(
313314

314315
// https://zips.z.cash/zip-0032#deriving-a-child-extended-spending-key
315316
zip32_sapling_ask_i_update(&ik.spending_key(), key_bundle_i.ask_mut());
317+
crate::bolos::heartbeat();
316318
zip32_sapling_nsk_i_update(&ik.spending_key(), key_bundle_i.nsk_mut());
319+
crate::bolos::heartbeat();
317320
zip32_sapling_ovk_i_update(&ik.spending_key(), key_bundle_i.ovk_mut());
321+
crate::bolos::heartbeat();
318322
zip32_sapling_dk_i_update(&ik.spending_key(), key_bundle_i.dk_mut());
319323
}
320324

321325
#[inline(never)]
322326
pub fn zip32_sapling_derive(path: &Zip32Path) -> SaplingKeyBundle {
323327
// ik as in capital I (https://zips.z.cash/zip-0032#sapling-child-key-derivation)
328+
crate::bolos::heartbeat();
324329
let mut ik = zip32_master_key_i();
325330
crate::bolos::heartbeat();
326331

@@ -335,6 +340,7 @@ pub fn zip32_sapling_derive(path: &Zip32Path) -> SaplingKeyBundle {
335340
zip32_sapling_derive_child(&mut ik, path_i, &mut key_bundle_i);
336341
c_check_app_canary();
337342
}
343+
crate::bolos::heartbeat();
338344

339345
key_bundle_i
340346
}

tests_zemu/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@zondax/ledger-js": "^0.10.0",
2828
"@zondax/ledger-zcash": "link:../js",
2929
"@zondax/zcashtools": "link:../zcashtools/neon",
30-
"@zondax/zemu": "^0.50.2"
30+
"@zondax/zemu": "^0.54.0"
3131
},
3232
"devDependencies": {
3333
"@ledgerhq/hw-transport-node-hid": "^6.29.1",
2.5 KB
2.51 KB
2.5 KB
-130 Bytes
-5 Bytes
-5 Bytes
-4 Bytes
-1 Bytes
0 Bytes
7 Bytes
-2 Bytes
3 Bytes
-2 Bytes
-1 Bytes
7 Bytes
0 Bytes
-5 Bytes
11 Bytes
11 Bytes
-3 Bytes
11 Bytes
11 Bytes
-3 Bytes
11 Bytes
11 Bytes
-3 Bytes
11 Bytes
11 Bytes
2 Bytes
2 Bytes
2 Bytes
-12 Bytes
9 Bytes
9 Bytes
-12 Bytes
2 Bytes
11 Bytes
-4 Bytes
-1 Bytes
0 Bytes
7 Bytes
-2 Bytes
3 Bytes
-2 Bytes
-1 Bytes
7 Bytes
0 Bytes
-5 Bytes
0 Bytes
2.09 KB
2.09 KB
2.09 KB
-128 Bytes
-4 Bytes
-1 Bytes
0 Bytes
7 Bytes
-2 Bytes
3 Bytes
-2 Bytes
-1 Bytes
7 Bytes
0 Bytes
-5 Bytes
11 Bytes
-1 Bytes
-1 Bytes
11 Bytes
11 Bytes
-3 Bytes
11 Bytes
11 Bytes
-3 Bytes
11 Bytes
11 Bytes
-3 Bytes
11 Bytes
11 Bytes
2 Bytes

0 commit comments

Comments
 (0)