aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/cryptonote_basic.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-04 19:03:41 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-04 19:03:41 +0200
commitc7ace5fa3d412410312e21c55c28068dcd625fef (patch)
treefba40dea29a948b8a4904b4de189d4adc605ec6e /src/cryptonote_basic/cryptonote_basic.h
parentMerge pull request #3245 (diff)
parentCode modifications to integrate Ledger HW device into monero-wallet-cli. (diff)
downloadmonero-c7ace5fa3d412410312e21c55c28068dcd625fef.tar.xz
Merge pull request #3303
e745c1e3 Code modifications to integrate Ledger HW device into monero-wallet-cli. (cslashm)
Diffstat (limited to 'src/cryptonote_basic/cryptonote_basic.h')
-rw-r--r--src/cryptonote_basic/cryptonote_basic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptonote_basic/cryptonote_basic.h b/src/cryptonote_basic/cryptonote_basic.h
index 54227ad92..4c5f32a09 100644
--- a/src/cryptonote_basic/cryptonote_basic.h
+++ b/src/cryptonote_basic/cryptonote_basic.h
@@ -434,6 +434,12 @@ namespace cryptonote
generate_keys(k.pub, k.sec);
return k;
}
+ static inline keypair generate(hw::device &hwdev)
+ {
+ keypair k;
+ generate_keys(k.pub, k.sec, hwdev);
+ return k;
+ }
};
//---------------------------------------------------------------