MCPcopy Create free account
hub / github.com/bcndev/bytecoin / get_transaction_prefix_hash

Method get_transaction_prefix_hash

src/CryptoNote.cpp:509–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509Hash cn::get_transaction_prefix_hash(const TransactionPrefix &tx) {
510 BinaryArray ba = seria::to_binary(tx);
511 // std::cout << "get_transaction_prefix_hash body=" << common::to_hex(ba) << std::endl;
512 return crypto::cn_fast_hash(ba.data(), ba.size());
513}
514
515Hash cn::get_transaction_hash(const Transaction &tx) {
516 if (tx.version >= parameters::TRANSACTION_VERSION_AMETHYST) {

Callers

nothing calls this directly

Calls 4

to_binaryFunction · 0.85
cn_fast_hashFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected