mirror of
https://codeberg.org/wownero/wownero.git
synced 2026-10-25 05:58:46 +01:00
Merge pull request 'miner block header signing' (#375) from wowario/wownero:msig2 into dev-v0.10
Reviewed-on: https://git.wownero.com/wownero/wownero/pulls/375
This commit is contained in:
@@ -1321,6 +1321,16 @@ namespace cryptonote
|
||||
return p;
|
||||
}
|
||||
//---------------------------------------------------------------
|
||||
crypto::hash get_sig_data(const block& b)
|
||||
{
|
||||
crypto::hash sig_data;
|
||||
std::stringstream ss;
|
||||
ss << (b.nonce + b.timestamp);
|
||||
std::string d(ss.str());
|
||||
crypto::cn_fast_hash(d.data(), d.size(), sig_data);
|
||||
return sig_data;
|
||||
}
|
||||
//---------------------------------------------------------------
|
||||
std::vector<uint64_t> relative_output_offsets_to_absolute(const std::vector<uint64_t>& off)
|
||||
{
|
||||
std::vector<uint64_t> res = off;
|
||||
|
||||
Reference in New Issue
Block a user