use new hdnode_private_ckd_cached API

pull/25/head
Pavol Rusnak 8 years ago
parent ee3a7cbcfa
commit 1763a5b647
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -138,7 +138,7 @@ HDNode *fsm_getDerivedNode(const char *curve, uint32_t *address_n, size_t addres
if (!address_n || address_n_count == 0) {
return &node;
}
if (hdnode_private_ckd_cached(&node, address_n, address_n_count) == 0) {
if (hdnode_private_ckd_cached(&node, address_n, address_n_count, NULL) == 0) {
fsm_sendFailure(FailureType_Failure_Other, "Failed to derive private key");
layoutHome();
return 0;

@ -518,7 +518,7 @@ void signing_txack(TransactionType *tx)
if (idx2 == idx1) {
memcpy(&input, tx->inputs, sizeof(TxInputType));
memcpy(&node, root, sizeof(HDNode));
if (hdnode_private_ckd_cached(&node, tx->inputs[0].address_n, tx->inputs[0].address_n_count) == 0) {
if (hdnode_private_ckd_cached(&node, tx->inputs[0].address_n, tx->inputs[0].address_n_count, NULL) == 0) {
fsm_sendFailure(FailureType_Failure_Other, "Failed to derive private key");
signing_abort();
return;

@ -68,7 +68,7 @@ int compile_output(const CoinType *coin, const HDNode *root, TxOutputType *in, T
if (in->address_n_count > 0) {
HDNode node;
memcpy(&node, root, sizeof(HDNode));
if (hdnode_private_ckd_cached(&node, in->address_n, in->address_n_count) == 0) {
if (hdnode_private_ckd_cached(&node, in->address_n, in->address_n_count, NULL) == 0) {
return 0;
}
layoutProgressUpdate(true);

@ -460,7 +460,7 @@ const HDNode *getDerivedNode(uint32_t *address_n, size_t address_n_count)
if (!address_n || address_n_count == 0) {
return &node;
}
if (hdnode_private_ckd_cached(&node, address_n, address_n_count) == 0) {
if (hdnode_private_ckd_cached(&node, address_n, address_n_count, NULL) == 0) {
layoutHome();
debugLog(0, "", "ERR: Derive private failed");
return 0;

@ -1 +1 @@
Subproject commit 6aac03d2d853eadaf9e91452b15381594fcf09b1
Subproject commit b55473a01ecfd095d1f4bd068c8d3385b993b986
Loading…
Cancel
Save