Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/proofid.cpp
- This file was added.
// Copyright (c) 2021 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#include <avalanche/proofid.h> | |||||
#include <hash.h> | |||||
#include <pubkey.h> | |||||
namespace avalanche { | |||||
ProofId LimitedProofId::computeProofId(const CPubKey &proofMaster) const { | |||||
CHashWriter ss(SER_GETHASH, 0); | |||||
ss << *this; | |||||
ss << proofMaster; | |||||
return ProofId(ss.GetHash()); | |||||
} | |||||
} // namespace avalanche |