You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

merkle.h 601B

1234567891011121314151617
  1. // Copyright (c) 2015 The Bitcoin Core developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef BITCOIN_MERKLE
  5. #define BITCOIN_MERKLE
  6. #include <stdint.h>
  7. #include <vector>
  8. #include "uint256.h"
  9. uint256 ComputeMerkleRoot(const std::vector<uint256>& leaves, bool* mutated = NULL);
  10. std::vector<uint256> ComputeMerkleBranch(const std::vector<uint256>& leaves, uint32_t position);
  11. uint256 ComputeMerkleRootFromBranch(const uint256& leaf, const std::vector<uint256>& branch, uint32_t position);
  12. #endif