mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Fix debug feature
This commit is contained in:
parent
235b94eb59
commit
32febd277d
1 changed files with 2 additions and 0 deletions
|
@ -567,6 +567,7 @@ namespace hw {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_HWDEVICE
|
#ifdef DEBUG_HWDEVICE
|
||||||
|
send_simple(INS_GET_KEY, 0x04);
|
||||||
memmove(dbg_viewkey.data, this->buffer_recv+0, 32);
|
memmove(dbg_viewkey.data, this->buffer_recv+0, 32);
|
||||||
memmove(dbg_spendkey.data, this->buffer_recv+32, 32);
|
memmove(dbg_spendkey.data, this->buffer_recv+32, 32);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1300,6 +1301,7 @@ namespace hw {
|
||||||
log_hexbuffer("GENERATE_TX_PROOF: **r** ", sig.r.data, sizeof( sig.r.data));
|
log_hexbuffer("GENERATE_TX_PROOF: **r** ", sig.r.data, sizeof( sig.r.data));
|
||||||
|
|
||||||
this->controle_device->generate_tx_proof(prefix_hash_x, R_x, A_x, B_x, D_x, r_x, sig_x);
|
this->controle_device->generate_tx_proof(prefix_hash_x, R_x, A_x, B_x, D_x, r_x, sig_x);
|
||||||
|
MDEBUG("FAIL is normal if random is not fixed in proof");
|
||||||
hw::ledger::check32("generate_tx_proof", "c", sig_x.c.data, sig.c.data);
|
hw::ledger::check32("generate_tx_proof", "c", sig_x.c.data, sig.c.data);
|
||||||
hw::ledger::check32("generate_tx_proof", "r", sig_x.r.data, sig.r.data);
|
hw::ledger::check32("generate_tx_proof", "r", sig_x.r.data, sig.r.data);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue