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:
wowario
2021-06-14 18:09:29 +00:00
13 changed files with 91 additions and 6 deletions
@@ -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;