Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/proofid.h
- This file was added.
// Copyright (c) 2020 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#ifndef BITCOIN_AVALANCHE_PROOFID_H | |||||
#define BITCOIN_AVALANCHE_PROOFID_H | |||||
#include <uint256.h> | |||||
#include <string> | |||||
namespace avalanche { | |||||
struct ProofId : public uint256 { | |||||
explicit ProofId() : uint256() {} | |||||
explicit ProofId(const uint256 &b) : uint256(b) {} | |||||
static ProofId fromHex(const std::string &str) { | |||||
ProofId r; | |||||
r.SetHex(str); | |||||
return r; | |||||
} | |||||
}; | |||||
} // namespace avalanche | |||||
#endif // BITCOIN_AVALANCHE_PROOFID_H |