diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-05-01 15:20:05 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-05-01 15:20:05 -0500 |
commit | 443f5c6bdafbd749534da3d85ff1b48d96106747 (patch) | |
tree | 5ea38baa41c039908d6158c5b074b90b84dc940c /src/cryptonote_basic/cryptonote_format_utils.cpp | |
parent | Merge pull request #6420 (diff) | |
parent | Add timelock verification on device (diff) | |
download | monero-443f5c6bdafbd749534da3d85ff1b48d96106747.tar.xz |
Merge pull request #6436
688a3e8 Add timelock verification on device (cslashm)
Diffstat (limited to 'src/cryptonote_basic/cryptonote_format_utils.cpp')
-rw-r--r-- | src/cryptonote_basic/cryptonote_format_utils.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index 80747dd89..b3400abc7 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -126,6 +126,20 @@ namespace cryptonote namespace cryptonote { //--------------------------------------------------------------- + void get_transaction_prefix_hash(const transaction_prefix& tx, crypto::hash& h, hw::device &hwdev) + { + hwdev.get_transaction_prefix_hash(tx,h); + } + + //--------------------------------------------------------------- + crypto::hash get_transaction_prefix_hash(const transaction_prefix& tx, hw::device &hwdev) + { + crypto::hash h = null_hash; + get_transaction_prefix_hash(tx, h, hwdev); + return h; + } + + //--------------------------------------------------------------- void get_transaction_prefix_hash(const transaction_prefix& tx, crypto::hash& h) { std::ostringstream s; |